We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e90fdbf commit 3d861b0Copy full SHA for 3d861b0
1 file changed
custom_components/liebherr/__init__.py
@@ -46,7 +46,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: LiebherrConfigEnt
46
devices: list[LiebherrDevice] = await api.async_get_devices()
47
48
# If there isn't a base polling interval
49
- if config_entry.options[CONF_POLL_INTERVAL] is None:
+ if config_entry.options.get(CONF_POLL_INTERVAL) is None:
50
options: dict[str, Any] = {**config_entry.options}
51
options[CONF_POLL_INTERVAL] = async_calculate_poll_interval(len(devices))
52
hass.config_entries.async_update_entry(config_entry, options=options)
0 commit comments