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`
This commit is contained in:
keith 2018-10-19 10:54:39 -07:00 committed by Fabian Affolter
parent 3e637cbf22
commit c3e0770b2f

View File

@ -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() %}