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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,7 @@ class PollenComData:
_LOGGER.error('Unable to get allergy history: %s', err)
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,
TYPE_ALLERGY_YESTERDAY]):
try: