Merge pull request #47 from elwing00/patch-1

Update ge_fridge.py
This commit is contained in:
simbaja 2021-10-06 22:28:55 -04:00 committed by GitHub
commit 16a5a890ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class GeFridge(GeAbstractFridge):
if door_left and door_left != ErdDoorStatus.NA: if door_left and door_left != ErdDoorStatus.NA:
data["left_door"] = door_status.fridge_left.name.title() data["left_door"] = door_status.fridge_left.name.title()
if drawer and drawer != ErdDoorStatus.NA: if drawer and drawer != ErdDoorStatus.NA:
data["drawer"] = door_status.fridge_left.name.title() data["drawer"] = door_status.drawer.name.title()
if data: if data:
all_closed = all(v == "Closed" for v in data.values()) all_closed = all(v == "Closed" for v in data.values())