Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tmenguy committed Sep 26, 2024
1 parent b89b07b commit e42f543
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 @@ -179,6 +179,7 @@ async def update(
self.rooms[room["id"]].update(room)

for person_status in data.get("persons", []):
# if there is a person update, it means the house has been updated
has_an_update = True
if person := self.persons.get(person_status["id"]):
person.update(person_status)
Expand Down

0 comments on commit e42f543

Please sign in to comment.