Skip to content

Commit

Permalink
Fix missing states (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohNan authored Mar 8, 2022
1 parent 6020702 commit aabfcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/pollenprognos/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def name(self):
return self._name

@property
def native_value(self):
def state(self):
"""Return the state of the device."""
today = next(item for item in self._allergen.get('days', []) if item['day'] == 0)
return today.get('level', 'n/a')
Expand Down

0 comments on commit aabfcdb

Please sign in to comment.