Send the Keba failsafe persist flag as 0 or 1 (#194890)

This commit is contained in:
Leszek 'skolima' Ciesielski
2026-11-27 06:54:31 +00:00
committed by GitHub
parent 1adc95e20b
commit cd5099dfeb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ class KebaHandler(KebaKeContact):
timeout = param[KebaServiceArgument.FAILSAFE_TIMEOUT]
fallback = param[KebaServiceArgument.FAILSAFE_FALLBACK]
persist = param[KebaServiceArgument.FAILSAFE_PERSIST]
await self.set_failsafe(int(timeout), float(fallback), bool(persist))
await self.set_failsafe(int(timeout), float(fallback), int(persist))
self._set_fast_polling()
except (KeyError, ValueError) as ex:
_LOGGER.warning(
+1 -1
View File
@@ -40,7 +40,7 @@ FAILSAFE = {
(KebaService.DEAUTHORIZE, {}, "stop", ("00845500",), 2),
(KebaService.ENABLE, {}, "enable", (True,), 2),
(KebaService.DISABLE, {}, "enable", (False,), 2),
(KebaService.SET_FAILSAFE, FAILSAFE, "set_failsafe", (30, 6.0, True), 2),
(KebaService.SET_FAILSAFE, FAILSAFE, "set_failsafe", (30, 6.0, 1), 2),
],
)
async def test_action(