tschamm / boschshcpy

Bosch Smart Home Controller API Python Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: 'NOT_AVAILABLE' is not a valid ValveTappetService.State

lcnittl opened this issue · comments

Since a while my instance yields the following error on startup:

2022-04-03 13:23:38 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up bosch_shc platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 257, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 801, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 553, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 593, in _async_write_ha_state
    extra_state_attributes = self.extra_state_attributes
  File "/config/custom_components/bosch_shc/sensor.py", line 364, in extra_state_attributes
    "valve_tappet_state": self._device.valvestate.name,
  File "/usr/local/lib/python3.9/site-packages/boschshcpy/models_impl.py", line 384, in valvestate
    return self._valvetappet_service.value
  File "/usr/local/lib/python3.9/site-packages/boschshcpy/services_impl.py", line 205, in value
    return self.State(self.state["value"])
  File "/usr/local/lib/python3.9/enum.py", line 384, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.9/enum.py", line 702, in __new__
    raise ve_exc
ValueError: 'NOT_AVAILABLE' is not a valid ValveTappetService.State

Is there any more information a can/shall provide that would be useful?

Cheers, lcnittl!