From 62477a34577c8519dec2c045d6893eb5c7e59ad7 Mon Sep 17 00:00:00 2001 From: Rami Mosleh Date: Thu, 9 Jul 2020 02:38:42 +0300 Subject: [PATCH] Use "next_state" attr instead of "post_pending" for ArmDisarm trait (#37325) --- homeassistant/components/google_assistant/trait.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/google_assistant/trait.py b/homeassistant/components/google_assistant/trait.py index f6301c8579d..70cc9bd9f52 100644 --- a/homeassistant/components/google_assistant/trait.py +++ b/homeassistant/components/google_assistant/trait.py @@ -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}