1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-04 22:53:54 +01:00

Fix nightlatch option for all switchbot locks (#146090)

This commit is contained in:
Retha Runolfsson
2025-06-03 18:11:02 +08:00
committed by GitHub
parent d1e0225520
commit c5db07e84d
@@ -367,7 +367,9 @@ class SwitchbotOptionsFlowHandler(OptionsFlow):
),
): int
}
if self.config_entry.data.get(CONF_SENSOR_TYPE) == SupportedModels.LOCK_PRO:
if self.config_entry.data.get(CONF_SENSOR_TYPE, "").startswith(
SupportedModels.LOCK
):
options.update(
{
vol.Optional(