Skip to content

Commit

Permalink
better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tmenguy committed Sep 10, 2024
1 parent 5de319a commit 2da7edc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyatmo/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ async def update(
self.rooms[room["id"]].update(room)

for person_status in data.get("persons", []):
has_an_update = True
if person := self.persons.get(person_status["id"]):
person.update(person_status)

Expand Down

0 comments on commit 2da7edc

Please sign in to comment.