1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-01 08:53:56 +00:00

Fix realtime option for hvv_departures (#79799)

This commit is contained in:
Lennart
2022-10-08 01:47:24 +02:00
committed by Paulus Schoutsen
parent 410479b212
commit b182305ff6

View File

@@ -16,7 +16,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.util import Throttle
from homeassistant.util.dt import get_time_zone, utcnow
from .const import ATTRIBUTION, CONF_STATION, DOMAIN, MANUFACTURER
from .const import ATTRIBUTION, CONF_REAL_TIME, CONF_STATION, DOMAIN, MANUFACTURER
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=1)
MAX_LIST = 20
@@ -90,7 +90,7 @@ class HVVDepartureSensor(SensorEntity):
},
"maxList": MAX_LIST,
"maxTimeOffset": MAX_TIME_OFFSET,
"useRealtime": self.config_entry.options.get("realtime", False),
"useRealtime": self.config_entry.options.get(CONF_REAL_TIME, False),
}
if "filter" in self.config_entry.options: