mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +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
|
): 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(
|
options.update(
|
||||||
{
|
{
|
||||||
vol.Optional(
|
vol.Optional(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user