You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error while setting up bgh_smart platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/bgh_smart/climate.py", line 77, in setup_platform
add_entities(BghHVAC(device, client) for device in devices)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 321, in _schedule_add_entities
list(new_entities),
File "/config/custom_components/bgh_smart/climate.py", line 77, in
add_entities(BghHVAC(device, client) for device in devices)
File "/config/custom_components/bgh_smart/climate.py", line 97, in init
self._parse_data()
File "/config/custom_components/bgh_smart/climate.py", line 113, in _parse_data
self._mode = MAP_MODE_ID[self._device['data']['mode_id']]
KeyError: 255
The text was updated successfully, but these errors were encountered:
Just testing this, I need AA batteries to confirm but changing MAP_MODE_ID and MAP_FAN_MODE_ID last key which is 254 to 255, the value returned now by BGH's API, the script doesn't crash and HA detects the devices
Error while setting up bgh_smart platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/bgh_smart/climate.py", line 77, in setup_platform
add_entities(BghHVAC(device, client) for device in devices)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 321, in _schedule_add_entities
list(new_entities),
File "/config/custom_components/bgh_smart/climate.py", line 77, in
add_entities(BghHVAC(device, client) for device in devices)
File "/config/custom_components/bgh_smart/climate.py", line 97, in init
self._parse_data()
File "/config/custom_components/bgh_smart/climate.py", line 113, in _parse_data
self._mode = MAP_MODE_ID[self._device['data']['mode_id']]
KeyError: 255
The text was updated successfully, but these errors were encountered: