Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
funtastix committed Sep 25, 2023
1 parent 55572b8 commit e0fd8c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions pyrinnaitouch/system.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Main system control"""
import logging
import queue
from typing import Any
from datetime import datetime
from typing import Any

from .const import RinnaiSystemMode, RinnaiUnitId

Expand Down Expand Up @@ -107,7 +107,11 @@ def poll_loop(self) -> None:
if "sys.exit" in new_status_json:
self._connection.shutdown()
break
if isinstance(new_status_json, list) and "SYST" in new_status_json[0] and "STM" in new_status_json[0]["SYST"]:
if (
isinstance(new_status_json, list)
and "SYST" in new_status_json[0]
and "STM" in new_status_json[0]["SYST"]
):
self._status.set_timesetting(True)
self._on_updated()
else:
Expand Down
2 changes: 1 addition & 1 deletion pyrinnaitouch/system_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ def set_capabilities(self, avm: Any) -> None:

def set_timesetting(self, is_setting: bool) -> None:
"""Set system into time setting mode"""
self.is_timesetting = is_setting
self.is_timesetting = is_setting

0 comments on commit e0fd8c3

Please sign in to comment.