mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix realtime option for hvv_departures (#79799)
This commit is contained in:
parent
87a22fbcca
commit
7132fe0ae7
@ -16,7 +16,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
from homeassistant.util.dt import get_time_zone, utcnow
|
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)
|
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=1)
|
||||||
MAX_LIST = 20
|
MAX_LIST = 20
|
||||||
@ -90,7 +90,7 @@ class HVVDepartureSensor(SensorEntity):
|
|||||||
},
|
},
|
||||||
"maxList": MAX_LIST,
|
"maxList": MAX_LIST,
|
||||||
"maxTimeOffset": MAX_TIME_OFFSET,
|
"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:
|
if "filter" in self.config_entry.options:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user