Skip to content

Commit

Permalink
Removed redundant logging
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Feb 13, 2022
1 parent 7ac242a commit dbe38a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion ThermiaOnlineAPI/api/ThermiaAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ def __authenticate(self):
)

auth_data = request_auth.json()
_LOGGER.debug(str(auth_data))

token_valid_to = auth_data.get("tokenValidToUtc").split(".")[0]
datetime_object = datetime.strptime(token_valid_to, "%Y-%m-%dT%H:%M:%S")
Expand Down
3 changes: 3 additions & 0 deletions ThermiaOnlineAPI/model/HeatPump.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def set_hot_water_switch_state(self, state: int):
self.update_data()

def __get_heat_temperature_data(self):
if not self.is_online:
return None # Device is offline

device_temperature_register_index = self.get_register_indexes()["temperature"]
if device_temperature_register_index is None:
_LOGGER.error(
Expand Down

0 comments on commit dbe38a4

Please sign in to comment.