Add extra state attributes to goalzero (#52932)
* Add extra state attributes to goalzero * tweak
This commit is contained in:
parent
059a9bc8ed
commit
a9b9c4f13c
3 changed files with 20 additions and 3 deletions
|
@ -56,4 +56,4 @@ class YetiSensor(YetiEntity):
|
|||
def state(self):
|
||||
"""Return the state."""
|
||||
if self.api.data:
|
||||
return self.api.data[self._condition]
|
||||
return self.api.data.get(self._condition)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue