mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Send the Keba failsafe persist flag as 0 or 1 (#194890)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user