Skip to content

Commit 26ce4d7

Browse files
committed
Added Thermostat library test
1 parent b6d19ca commit 26ce4d7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lnetatmo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,12 @@ def getStationMinMaxTH(station=None, module=None):
774774
if stdout.isatty():
775775
print("lnetatmo.py : warning, no home available for testing")
776776

777+
try:
778+
thermostat = ThermostatData(authorization)
779+
except NoDevice:
780+
if stdout.isatty():
781+
print("lnetatmo.py : warning, no thermostat avaible for testing")
782+
777783
# If we reach this line, all is OK
778784

779785
# If launched interactively, display OK message

0 commit comments

Comments
 (0)