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 Franck Nijhof
parent 415858119a
commit 010c5cab87
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952

View File

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