Skip to content

Commit 9d9f321

Browse files
authored
Handle when appliance is disconnected (#32)
1 parent 7ba33a4 commit 9d9f321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frigidaire/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class Detail(str, Enum):
102102

103103
class Appliance:
104104
def __init__(self, args: Dict):
105-
self.appliance_type: str = args['properties']['reported']['applianceInfo']['applianceType']
106105
self.appliance_id: str = args['applianceId']
106+
self.appliance_type: str = args['applianceData']['modelName']
107107
self.nickname: str = args['applianceData']['applianceName']
108108
self.destination = Destination(self.appliance_type)
109109

0 commit comments

Comments
 (0)