From 9d9f3215285dbd2cb720ad4799ab4d2ada14dfb6 Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Sat, 15 Jun 2024 21:29:46 -0400 Subject: [PATCH] Handle when appliance is disconnected (#32) --- frigidaire/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigidaire/__init__.py b/frigidaire/__init__.py index 9c4bae5..c759f6c 100644 --- a/frigidaire/__init__.py +++ b/frigidaire/__init__.py @@ -102,8 +102,8 @@ class Detail(str, Enum): class Appliance: def __init__(self, args: Dict): - self.appliance_type: str = args['properties']['reported']['applianceInfo']['applianceType'] self.appliance_id: str = args['applianceId'] + self.appliance_type: str = args['applianceData']['modelName'] self.nickname: str = args['applianceData']['applianceName'] self.destination = Destination(self.appliance_type)