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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(