AttributeError: 'Collector' object has no attribute 'location_name'
See original GitHub issueHome 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:
- Created 2 years ago
- Reactions:4
- Comments:23 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@glenn20 thanks for the PR. I have tested it out and merged. It has been released as v1.1.6.
@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.