mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Fix nightlatch option for all switchbot locks (#146090)
This commit is contained in:
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user