Unignore today's collection for Rova (#97567)
This commit is contained in:
parent
6c95e07b7d
commit
7096daa0c1
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue