Filter out CONF_SCAN_INTERVAL from scrape import (#74254)

pull/74271/head
J. Nick Koston 2022-06-30 12:39:36 -05:00 committed by GitHub
parent f05b4a0ca0
commit 2723ca0b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ from homeassistant.const import (
CONF_NAME,
CONF_PASSWORD,
CONF_RESOURCE,
CONF_SCAN_INTERVAL,
CONF_UNIT_OF_MEASUREMENT,
CONF_USERNAME,
CONF_VALUE_TEMPLATE,
@ -90,7 +91,7 @@ async def async_setup_platform(
hass.config_entries.flow.async_init(
DOMAIN,
context={"source": SOURCE_IMPORT},
data=config,
data={k: v for k, v in config.items() if k != CONF_SCAN_INTERVAL},
)
)