Skip to content

Commit

Permalink
Handle when appliance is disconnected (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bm1549 authored Jun 16, 2024
1 parent 7ba33a4 commit 9d9f321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigidaire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9d9f321

Please sign in to comment.