mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Filter out CONF_SCAN_INTERVAL from scrape import (#74254)
This commit is contained in:
parent
f05b4a0ca0
commit
2723ca0b85
@ -24,6 +24,7 @@ from homeassistant.const import (
|
|||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
CONF_PASSWORD,
|
CONF_PASSWORD,
|
||||||
CONF_RESOURCE,
|
CONF_RESOURCE,
|
||||||
|
CONF_SCAN_INTERVAL,
|
||||||
CONF_UNIT_OF_MEASUREMENT,
|
CONF_UNIT_OF_MEASUREMENT,
|
||||||
CONF_USERNAME,
|
CONF_USERNAME,
|
||||||
CONF_VALUE_TEMPLATE,
|
CONF_VALUE_TEMPLATE,
|
||||||
@ -90,7 +91,7 @@ async def async_setup_platform(
|
|||||||
hass.config_entries.flow.async_init(
|
hass.config_entries.flow.async_init(
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
context={"source": SOURCE_IMPORT},
|
context={"source": SOURCE_IMPORT},
|
||||||
data=config,
|
data={k: v for k, v in config.items() if k != CONF_SCAN_INTERVAL},
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user