question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'Collector' object has no attribute 'location_name'

See original GitHub issue

Home Assistant 2021.12.7. BoM 1.1.1 via HACS. I’ve got the observational sensors enabled, but the forecast sensors disabled.

Getting the following in the log and the weather entities are not appearing:

Logger: homeassistant.components.weather
Source: custom_components/bureau_of_meteorology/weather.py:24
Integration: Weather (documentation, issues)
First occurred: 11:16:51 (1 occurrences)
Last logged: 11:16:51

Error while setting up bureau_of_meteorology platform for weather
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/bureau_of_meteorology/weather.py", line 24, in async_setup_entry
    location_name = hass_data[COLLECTOR].location_name
AttributeError: 'Collector' object has no attribute 'location_name'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Makin-Thingscommented, May 15, 2022

@glenn20 thanks for the PR. I have tested it out and merged. It has been released as v1.1.6.

0reactions
glenn20commented, May 16, 2022

Sorry but can anyone tell me where and how you get forecast on/off selection? I only get coordinate enter fields while configuring the integration, no other option.

@Gitspecial - I can only guess that it might be that your browser is still caching some of the config flow data. You may need to do a hard refresh in your browser. I’m no expert in this, but I found I had to do that whenever I tweaked the config_flow sequence in the integration. I “thought” that the integration would prompt you to do that automatically, but maybe that didn’t work in your case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "AttributeError: 'str' object has no attribute 'append'"
If you want to append a value to myList , use myList.append(s) . Strings are immutable -- you can't append to them.
Read more >
AttributeError: 'str' object has no attribute 'append' | bobbyhadz
The Python "AttributeError: 'str' object has no attribute 'append'" occurs when we try to call the append() method on a string (e.g. a...
Read more >
REST Resource: accounts.locations | Google Business Profile ...
This is a means of associating the location with your own records. locationName. string. Location name should reflect your business's real-world name, as...
Read more >
Python AttributeError: 'str' object has no attribute 'append'
The “AttributeError: 'str' object has no attribute 'append'” error is raised when developers use append() instead of the concatenation operator.
Read more >
arcgis.geocoding module | ArcGIS API for Python
Returns. A list of Geocoder objects registered with the GIS . ... If not specified, the active GIS object's first geocoder is used....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found