Skip to content

Commit 3d861b0

Browse files
committed
missing poll interval
1 parent e90fdbf commit 3d861b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom_components/liebherr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: LiebherrConfigEnt
4646
devices: list[LiebherrDevice] = await api.async_get_devices()
4747

4848
# If there isn't a base polling interval
49-
if config_entry.options[CONF_POLL_INTERVAL] is None:
49+
if config_entry.options.get(CONF_POLL_INTERVAL) is None:
5050
options: dict[str, Any] = {**config_entry.options}
5151
options[CONF_POLL_INTERVAL] = async_calculate_poll_interval(len(devices))
5252
hass.config_entries.async_update_entry(config_entry, options=options)

0 commit comments

Comments
 (0)