bureau_of_meteorology: AttributeError: 'Collector' object has no attribute 'location_name'
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'
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 23 (6 by maintainers)
@glenn20 thanks for the PR. I have tested it out and merged. It has been released as v1.1.6.