File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ def __init__(
187
187
self ._lockdata : dict = {}
188
188
self ._tempdata : dict = {}
189
189
self ._switchdata : dict = {}
190
- self ._alarmstatus : str = ""
190
+ self ._alarmstatus : int = 0
191
191
self ._changed_by : str = ""
192
192
self .websession = websession
193
193
self ._sector_temp = sector_temp
@@ -339,9 +339,10 @@ async def fetch_info(self, tempcheck: bool = True) -> None:
339
339
)
340
340
if response :
341
341
json_data = await response .json ()
342
- self ._alarmstatus = json_data ["Status" ]
343
- _LOGGER .debug ("self._alarmstatus = %s" , self ._alarmstatus )
344
- _LOGGER .debug ("Full output panelstatus: %s" , json_data )
342
+ if json_data ["IsOnline" ] is True :
343
+ self ._alarmstatus = json_data ["Status" ]
344
+ _LOGGER .debug ("self._alarmstatus = %s" , self ._alarmstatus )
345
+ _LOGGER .debug ("Full output panelstatus: %s" , json_data )
345
346
346
347
if self ._temps and self ._sector_temp and self ._update_sensors :
347
348
response = await self ._request (
You can’t perform that action at this time.
0 commit comments