Clear garage display on error

This commit is contained in:
Mike Cifelli 2023-01-07 09:38:31 -05:00
parent 0abb117abb
commit 3afa65a1b7
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@ class GarageDisplay:
if self.isGarageStateValid(state): if self.isGarageStateValid(state):
self.showState(state) self.showState(state)
else:
self.symbolDisplay.clearRow(self.topRow, rowHeight=4)
def getGarageState(self): def getGarageState(self):
try: try:

View File

@ -25,7 +25,7 @@ except ImportError:
unicorn.rotation(180) unicorn.rotation(180)
WEATHER_UPDATE_INTERVAL_IN_SECONDS = 10 WEATHER_UPDATE_INTERVAL_IN_SECONDS = 60
GARAGE_UPDATE_INTERVAL_IN_SECONDS = 30 GARAGE_UPDATE_INTERVAL_IN_SECONDS = 30
DISPLAY_UPDATE_INTERVAL_IN_SECONDS = 0.5 DISPLAY_UPDATE_INTERVAL_IN_SECONDS = 0.5
CONFIG_FILE = 'chutney.cfg' CONFIG_FILE = 'chutney.cfg'