Problem after Home Assistant Update #259
Replies: 1 comment
-
This was a problem inside of Weather Underground, not related to Home Assistant. It is fine now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I upgraded to the latest Home Assistant Supervisor today and now Weather Underground doesn't work.
Versions now are:
Core 2024.10.1
Supervisor 2024.10.0
Operating System 13.1
Frontend 20241002.2
The first error I get on a HA restart or just a reload of the integration is:
This error originated from a custom integration.
Logger: custom_components.wundergroundpws.coordinator
Source: custom_components/wundergroundpws/coordinator.py:153
integration: Wundergroundpws (documentation, issues)
First occurred: 2:58:18 PM (1 occurrences)
Last logged: 2:58:18 PM
Check WUnderground API ('NO CURRENT RESULT',)
That is followed by this one
Logger: homeassistant.components.weather
Source: helpers/entity_platform.py:595
integration: Weather (documentation, issues)
First occurred: 2:58:18 PM (1 occurrences)
Last logged: 2:58:18 PM
Error adding entity weather.kcocastl82 for domain weather with platform wundergroundpws
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 909, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1366, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1005, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1130, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1011, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weather/init.py", line 871, in state
return self.condition
^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/weather.py", line 163, in condition
day = self.coordinator.get_forecast(FIELD_FORECAST_ICONCODE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/coordinator.py", line 214, in get_forecast
return self.data[FIELD_DAYPART][0][field][period]
~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
And finally this one
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:361
integration: Sensor (documentation, issues)
First occurred: 2:58:18 PM (1 occurrences)
Last logged: 2:58:18 PM
Error while setting up wundergroundpws platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/wundergroundpws/sensor.py", line 47, in async_setup_entry
WundergroundPWSSensor(coordinator, description) for description in SENSOR_DESCRIPTIONS
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/sensor.py", line 116, in init
self._sensor_data = _get_sensor_data(
^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/sensor.py", line 180, in _get_sensor_data
return sensors[FIELD_OBSERVATIONS][0][kind]
~~~~~~~^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
After this checking the entity weather.kcocastl82 gives Unavailable and none of the sensors are available. I have checked with Weather Underground and Ambient weather and my station is up and reporting. I restarted the station as a test then restarted HA but that didn't help.
I turned on debugging. The log has 72 mentions of WeatherUnderground in it. A few that look like errors follow:
AttributeError: 'NoneType' object has no attribute 'get'
2024-10-07 14:47:11.341 INFO (MainThread) [aioambient] Received packet MESSAGE data 0{"sid":"TNUo38wyy-ZZFcloGW_X"}
2024-10-07 14:47:11.342 ERROR (MainThread) [custom_components.wundergroundpws.coordinator] Check WUnderground API ('NO CURRENT RESULT',)
2024-10-07 14:47:11.852 INFO (MainThread) [homeassistant.components.weather] Setting up wundergroundpws.weather
2024-10-07 14:47:11.853 ERROR (MainThread) [homeassistant.components.weather] Error adding entity weather.kcocastl82 for domain weather with platform wundergroundpws
Traceback (most recent call last):
File "/config/custom_components/wundergroundpws/weather.py", line 163, in condition
day = self.coordinator.get_forecast(FIELD_FORECAST_ICONCODE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/coordinator.py", line 214, in get_forecast
return self.data[FIELD_DAYPART][0][field][period]
~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
2024-10-07 14:47:11.857 INFO (MainThread) [homeassistant.components.sensor] Setting up wundergroundpws.sensor
2024-10-07 14:47:11.857 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up wundergroundpws platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/wundergroundpws/sensor.py", line 47, in async_setup_entry
WundergroundPWSSensor(coordinator, description) for description in SENSOR_DESCRIPTIONS
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/sensor.py", line 116, in init
self._sensor_data = _get_sensor_data(
^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/sensor.py", line 180, in _get_sensor_data
return sensors[FIELD_OBSERVATIONS][0][kind]
~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/weather.py", line 214, in async_forecast_daily
return self._forecast()
^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/weather.py", line 171, in _forecast
if self.coordinator.get_forecast('temperature', 0) is None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/coordinator.py", line 214, in get_forecast
return self.data[FIELD_DAYPART][0][field][period]
~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
File "/config/custom_components/wundergroundpws/weather.py", line 214, in async_forecast_daily
return self._forecast()
^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/weather.py", line 171, in _forecast
if self.coordinator.get_forecast('temperature', 0) is None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/coordinator.py", line 214, in get_forecast
return self.data[FIELD_DAYPART][0][field][period]
2024-10-07 14:51:36.809 ERROR (MainThread) [custom_components.wundergroundpws.coordinator] Check WUnderground API ('NO CURRENT RESULT',)
2024-10-07 14:51:36.810 INFO (MainThread) [homeassistant.components.weather] Setting up wundergroundpws.weather
2024-10-07 14:51:36.811 ERROR (MainThread) [homeassistant.components.weather] Error adding entity weather.kcocastl82 for domain weather with platform wundergroundpws
Traceback (most recent call last):
TypeError: 'NoneType' object is not subscriptable
2024-10-07 14:58:18.798 INFO (MainThread) [homeassistant.components.sensor] Setting up wundergroundpws.sensor
2024-10-07 14:58:18.798 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up wundergroundpws platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/wundergroundpws/sensor.py", line 47, in async_setup_entry
WundergroundPWSSensor(coordinator, description) for description in SENSOR_DESCRIPTIONS
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/sensor.py", line 116, in init
self._sensor_data = _get_sensor_data(
^^^^^^^^^^^^^^^^^
File "/config/custom_components/wundergroundpws/sensor.py", line 180, in _get_sensor_data
return sensors[FIELD_OBSERVATIONS][0][kind]
~~~~~~~^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
Beta Was this translation helpful? Give feedback.
All reactions