-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'NoneType' object is not subscriptable #78
Comments
Getting the exact same error after updating to the latest version some time yesterday. |
Also getting two other errors:
|
I'm now getting the exact same issue. |
I'll take a look into this guys. Sorry for the poor response times. |
Removed integration and attempt to re-add
|
Having the same exact issue: |
Not sure if this helps, but spent a few minutes digging through code, trying a few things (at the start, just putting an if on that missing wind data)... For me, it is tied to the observation data not being there. After about an hour, the sensors came back on their own without help. Before that time, I removed the integration and tried re-adding it. I saw errors with the observation sensors on setting the integration up, but can move past to the forecast sensors and it works. It fails with the following error on creating/installing the observation sensor:
I tried with some basic print/debugs before deleting / reinstalling, and the same sort of issue, here is the output when the sensors are being filled in (as best I could tell) - notice all the observation data has a value of None, even the station...
|
Fixed in v1.0.0 |
See traceback
Logger: homeassistant.components.weather
Source: custom_components/bureau_of_meteorology/weather.py:118
Integration: Weather (documentation, issues)
First occurred: 1:18:20 PM (2 occurrences)
Last logged: 1:18:20 PM
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 322, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 434, in _async_add_entity
original_icon=entity.icon,
File "/config/custom_components/bureau_of_meteorology/weather.py", line 118, in icon
return self.collector.daily_forecasts_data["data"][0]["mdi_icon"]
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: