Skip to content

Commit f1fee99

Browse files
committed
fix aido log
1 parent b52eaba commit f1fee99

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- --skip="./.*,*.csv,*.json"
2222
- --quiet-level=2
2323
exclude_types: [csv, json]
24-
- repo: https://gitlab.com/pycqa/flake8
24+
- repo: https://github.com/PyCQA/flake8
2525
rev: 3.8.1
2626
hooks:
2727
- id: flake8

airzone/aido.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def set_signal_temperature_value(self, value):
9090
self._write_register(1, int(value * 10))
9191

9292
def get_local_temperature(self):
93+
if self._machine_state == None:
94+
return -1
9395
return self._machine_state[2] / 10
9496

9597
def get_operation_mode(self):

0 commit comments

Comments
 (0)