core: Plugwise: KeyError: 'setpoint'
The problem
seeing below error in logs after updating to September beta and restarting consistently
number.opentherm_domestic_hot_water_setpoint
no longer being available
What version of Home Assistant Core has the issue?
2023.9 beta 0
What was the last working version of Home Assistant Core?
2023.8.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Plugwise
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/plugwise/
Diagnostics information
config_entry-plugwise-474a410dc55f45ad8124f87f62baa412.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.number
Source: components/plugwise/number.py:107
Integration: Nummer (documentation, issues)
First occurred: 08:11:33 (2 occurrences)
Last logged: 08:11:33
Error adding entities for domain number with platform plugwise
Error while setting up plugwise platform for number
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/plugwise/entity.py", line 81, in async_added_to_hass
self._handle_coordinator_update()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 473, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 726, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 826, in _async_write_ha_state
state, attr = self._async_generate_attributes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 767, in _async_generate_attributes
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 732, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 320, in state
return self.value
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 358, in value
if (native_value := self.native_value) is None:
^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/plugwise/number.py", line 107, in native_value
return self.device[self.entity_description.key]["setpoint"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'setpoint'
Additional information
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 47 (43 by maintainers)
Commits related to this issue
- Improve handling of invalid actuator xml-data Solution to https://github.com/home-assistant/core/issues/99372 — committed to plugwise/python-plugwise by bouwew 9 months ago
About “other than you actually say the error was there all along, but now it shows?” Yes that’s what I mean.
About “maybe the way you changed things isnt optimal/buggy”, I’ll take a more in-depth look at this during the weekend.