correct switch bug and rename async functions

This commit is contained in:
vincent committed 2024-02-27 14:52:29 +01:00
1 parent cee71535bf
commit 8eae65de57
8 files changed
+86 -50

No files matched your search

+1
View File
@@ -500,6 +500,7 @@ class Koolnova:
''' Set System State '''
if not isinstance(val, const.SysState):
raise AssertionError('Input variable must be Enum SysState')
_LOGGER.debug("set system state : {}".format(val))
ret = await self._client.set_system_status(val)
if not ret:
_LOGGER.error("[SYS_STATE] Error writing {} to modbus".format(val))