From c3e0770b2f270823c4fc75449b0523345e70f880 Mon Sep 17 00:00:00 2001 From: keith Date: Fri, 19 Oct 2018 10:54:39 -0700 Subject: [PATCH] fix get_state syntax examples (#6952) when called as given, errors with `TypeError: get_state() takes from 1 to 2 positional arguments but 3 were given` --- source/_docs/ecosystem/appdaemon/api.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/ecosystem/appdaemon/api.markdown b/source/_docs/ecosystem/appdaemon/api.markdown index 4464e699717..09fcfd6781b 100755 --- a/source/_docs/ecosystem/appdaemon/api.markdown +++ b/source/_docs/ecosystem/appdaemon/api.markdown @@ -317,10 +317,10 @@ state = self.get_state("switch") state = self.get_state("light.office_1") # Return the brightness attribute for light.office_1 -state = self.get_state("light.office_1", "brightness") +state = self.get_state("light.office_1", attribute = "brightness") # Return the entire state for light.office_1 -state = self.get_state("light.office_1", "all") +state = self.get_state("light.office_1", attribute = "all") ``` ### {% linkable_title set_state() %}