Use "next_state" attr instead of "post_pending" for ArmDisarm trait (#37325)
This commit is contained in:
parent
a077c280c8
commit
62477a3457
1 changed files with 2 additions and 2 deletions
|
@ -1073,8 +1073,8 @@ class ArmDisArmTrait(_Trait):
|
||||||
|
|
||||||
def query_attributes(self):
|
def query_attributes(self):
|
||||||
"""Return ArmDisarm query attributes."""
|
"""Return ArmDisarm query attributes."""
|
||||||
if "post_pending_state" in self.state.attributes:
|
if "next_state" in self.state.attributes:
|
||||||
armed_state = self.state.attributes["post_pending_state"]
|
armed_state = self.state.attributes["next_state"]
|
||||||
else:
|
else:
|
||||||
armed_state = self.state.state
|
armed_state = self.state.state
|
||||||
response = {"isArmed": armed_state in self.state_to_service}
|
response = {"isArmed": armed_state in self.state_to_service}
|
||||||
|
|
Loading…
Add table
Reference in a new issue