mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Loosen field retrieval from Pollen.com (#22132)
This commit is contained in:
parent
0d42ed1861
commit
8529ad3ba1
@ -239,8 +239,8 @@ class ForecastSensor(BaseSensor):
|
|||||||
|
|
||||||
if self._kind == TYPE_ALLERGY_FORECAST:
|
if self._kind == TYPE_ALLERGY_FORECAST:
|
||||||
outlook = self.pollen.data[TYPE_ALLERGY_OUTLOOK]
|
outlook = self.pollen.data[TYPE_ALLERGY_OUTLOOK]
|
||||||
self._attrs[ATTR_OUTLOOK] = outlook['Outlook']
|
self._attrs[ATTR_OUTLOOK] = outlook.get('Outlook')
|
||||||
self._attrs[ATTR_SEASON] = outlook['Season']
|
self._attrs[ATTR_SEASON] = outlook.get('Season')
|
||||||
|
|
||||||
self._state = average
|
self._state = average
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user