Loosen field retrieval from Pollen.com (#22132)

This commit is contained in:
Aaron Bach
2019-03-17 11:55:58 -06:00
committed by GitHub
parent 0d42ed1861
commit 8529ad3ba1

View File

@@ -239,8 +239,8 @@ class ForecastSensor(BaseSensor):
if self._kind == TYPE_ALLERGY_FORECAST:
outlook = self.pollen.data[TYPE_ALLERGY_OUTLOOK]
self._attrs[ATTR_OUTLOOK] = outlook['Outlook']
self._attrs[ATTR_SEASON] = outlook['Season']
self._attrs[ATTR_OUTLOOK] = outlook.get('Outlook')
self._attrs[ATTR_SEASON] = outlook.get('Season')
self._state = average