mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 17:48:26 +00:00
parent
c9611303d5
commit
3838c2ab62
@ -61,7 +61,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
load_coroutines: list[Coroutine[Any, Any, None]] = []
|
load_coroutines: list[Coroutine[Any, Any, None]] = []
|
||||||
for resource_config in scrape_config:
|
for resource_config in scrape_config:
|
||||||
rest = create_rest_data_from_config(hass, resource_config)
|
rest = create_rest_data_from_config(hass, resource_config)
|
||||||
scan_interval: timedelta = config.get(CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL)
|
scan_interval: timedelta = resource_config.get(
|
||||||
|
CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL
|
||||||
|
)
|
||||||
coordinator = ScrapeCoordinator(hass, rest, scan_interval)
|
coordinator = ScrapeCoordinator(hass, rest, scan_interval)
|
||||||
|
|
||||||
sensors: list[ConfigType] = resource_config.get(SENSOR_DOMAIN, [])
|
sensors: list[ConfigType] = resource_config.get(SENSOR_DOMAIN, [])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user