Data missing after update to Home Assistant 2022.12
See original GitHub issueDescribe the bug After updating to Home Assistant 2022.12 the integration seems not to be working anymore.
To Reproduce The sensors “recording…” all changed to state unknown. Seen with the following sensors:
- sensor.recording_ractualchpower
- sensor.recording_ractualdhwpower
- sensor.recording_ractualpower
- sensor.recording_ractualtemp
- sensor.recording_routdoor_t1
- sensor.recording_rroomtemperature
Neither restarting Home Assistant nor reloading the integration manually did any help!
Expected behavior The sensors used to provide values before updating Home Assistant to 2022.12
Screenshots
Version
- Home Assistant 2022.12.0
- Supervisor 2022.11.2
- Operating System 9.3
- Frontend 20221207.0 - latest
- HA Bosch component version 1.28.4
- Python Bosch HTTP client version?
** Debug SCAN ** ** IMPORTANT ** Running debug scan doed not work: “Fehler beim Aufrufen des Diensts bosch.debug_scan. required key not provided @ data[‘uuid’]. Got None”
Additional context `Logger: homeassistant.helpers.entity Source: custom_components/bosch/sensor/recording.py:105 Integration: Bosch thermostat (documentation, issues) First occurred: 06:41:21 (828 occurrences) Last logged: 07:49:51
Update for sensor.recording_ractualpower fails Update for sensor.recording_ractualchpower fails Update for sensor.recording_ractualdhwpower fails Update for sensor.recording_rroomtemperature fails Update for sensor.recording_ractualtemp fails Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 527, in async_update_ha_state await self.async_device_update() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 722, in async_device_update raise exc File “/config/custom_components/bosch/sensor/recording.py”, line 89, in async_update await self._insert_statistics() File “/config/custom_components/bosch/sensor/recording.py”, line 105, in _insert_statistics last_stats = await get_instance(self.hass).async_add_executor_job( File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) TypeError: get_last_statistics() missing 1 required positional argument: ‘types’`
Issue Analytics
- State:
- Created 9 months ago
- Comments:12 (2 by maintainers)
Top GitHub Comments
Hello, I’ve just tried v0.20.0dev1a on Home Assistant 2022.12.1 and it still doesn’t work. It complains about date format now.
Logger: homeassistant.helpers.entity Source: util/dt.py:188 First occurred: 12:35:07 (336 occurrences) Last logged: 13:02:37
Update for sensor.bosch_recording_ractualpower fails Update for sensor.bosch_recording_routdoor_t1 fails Update for sensor.bosch_recording_ractualchpower fails Update for sensor.bosch_recording_rsolaryield fails Update for sensor.bosch_recording_ractualdhwpower fails Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 527, in async_update_ha_state await self.async_device_update() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 722, in async_device_update raise exc File “/config/custom_components/bosch/sensor/recording.py”, line 89, in async_update await self._insert_statistics() File “/config/custom_components/bosch/sensor/recording.py”, line 127, in _insert_statistics end_time = dt_util.as_local(dt_util.parse_datetime(end)) File “/usr/src/homeassistant/homeassistant/util/dt.py”, line 188, in parse_datetime return ciso8601.parse_datetime(dt_str) TypeError: argument 1 must be str, not datetime.datetime
@schraubgern do you use the latest version?