Fixes a bug with showing a subset of Pollen index conditions (#15694)

This commit is contained in:
Aaron Bach
2018-07-26 12:31:44 -06:00
committed by GitHub
parent 974fe4d923
commit e30510a688

View File

@@ -307,7 +307,7 @@ class PollenComData:
_LOGGER.error('Unable to get allergy history: %s', err) _LOGGER.error('Unable to get allergy history: %s', err)
self.data[TYPE_ALLERGY_HISTORIC] = {} self.data[TYPE_ALLERGY_HISTORIC] = {}
if all(s in self._sensor_types if any(s in self._sensor_types
for s in [TYPE_ALLERGY_TODAY, TYPE_ALLERGY_TOMORROW, for s in [TYPE_ALLERGY_TODAY, TYPE_ALLERGY_TOMORROW,
TYPE_ALLERGY_YESTERDAY]): TYPE_ALLERGY_YESTERDAY]):
try: try: