mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Use "next_state" attr instead of "post_pending" for ArmDisarm trait (#37325)
This commit is contained in:
parent
a077c280c8
commit
62477a3457
@ -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…
x
Reference in New Issue
Block a user