home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.48k stars 29.41k forks source link

OpenTherm Gateway climate entity not created #29253

Closed Pakast closed 4 years ago

Pakast commented 4 years ago

Home Assistant release with the issue: 0.102.3

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.): Hassbian on Raspberry Pi 3

Integration: OpenTherm Gateway

Description of problem: When enabling OpenTherm Gateway Integration the climate entity is not created and a KeyError is written to the log file.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant): Integration enabled via UI.

Traceback (if applicable):

2019-11-30 14:58:15 ERROR (MainThread) [pyotgw.protocol] Disconnected: None
2019-11-30 14:58:16 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform opentherm_gw
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/opentherm_gw/climate.py", line 43, in async_setup_entry
    config_entry.options,
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/opentherm_gw/climate.py", line 57, in __init__
    self.floor_temp = options[CONF_FLOOR_TEMP]
KeyError: 'floor_temperature'

Additional information:

springstan commented 4 years ago

This issue has been solved already and the fix will be included in the next release, see #28474. Therefore please close this issue :)

Pakast commented 4 years ago

I see the latest release was 5 hours ago. It is not in there? When will be the next release which includes this fix?

springstan commented 4 years ago

If I am calculating correctly it should be 12/11/2019. See Home Assistant releases. Hope this helps :)

springstan commented 4 years ago

@Pakast do not forget to close this issue :) thanks again.