mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fixes a bug with showing a subset of Pollen index conditions (#15694)
This commit is contained in:
parent
974fe4d923
commit
e30510a688
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user