Unignore today's collection for Rova (#97567)

This commit is contained in:
Joost Lekkerkerker 2023-08-01 21:31:45 +02:00 committed by GitHub
parent 6c95e07b7d
commit 7096daa0c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
from homeassistant.util import Throttle
from homeassistant.util.dt import get_time_zone, now
from homeassistant.util.dt import get_time_zone
# Config for rova requests.
CONF_ZIP_CODE = "zip_code"
@ -150,8 +150,7 @@ class RovaData:
tzinfo=get_time_zone("Europe/Amsterdam")
)
code = item["GarbageTypeCode"].lower()
if code not in self.data and date > now():
if code not in self.data:
self.data[code] = date
_LOGGER.debug("Updated Rova calendar: %s", self.data)