mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57: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):
|
||||
"""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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user