Skip to content

Commit

Permalink
Use "next_state" attr instead of "post_pending" for ArmDisarm trait (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
engrbm87 authored Jul 8, 2020
1 parent a077c28 commit 62477a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/google_assistant/trait.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,8 @@ def sync_attributes(self):

def query_attributes(self):
"""Return ArmDisarm query attributes."""
if "post_pending_state" in self.state.attributes:
armed_state = self.state.attributes["post_pending_state"]
if "next_state" in self.state.attributes:
armed_state = self.state.attributes["next_state"]
else:
armed_state = self.state.state
response = {"isArmed": armed_state in self.state_to_service}
Expand Down

0 comments on commit 62477a3

Please sign in to comment.