Remove force latch mode for locklite in switchbot integration (#147474)

This commit is contained in:
Retha Runolfsson 2025-06-26 00:45:37 +08:00 committed by GitHub
parent 3268b9ee18
commit 2800921a5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -367,8 +367,12 @@ class SwitchbotOptionsFlowHandler(OptionsFlow):
), ),
): int ): int
} }
if self.config_entry.data.get(CONF_SENSOR_TYPE, "").startswith( if CONF_SENSOR_TYPE in self.config_entry.data and self.config_entry.data[
SupportedModels.LOCK CONF_SENSOR_TYPE
] in (
SupportedModels.LOCK,
SupportedModels.LOCK_PRO,
SupportedModels.LOCK_ULTRA,
): ):
options.update( options.update(
{ {