Move data on import in rfxtrx integration into ConfigEntry (#38022)

* Move all data imported from yaml to ConfigEntry

* Revert changes that prevent updating yaml entry

* Cleanup code around time conversion
This commit is contained in:
Rob Bierbooms
2020-07-21 09:44:00 +02:00
committed by GitHub
parent 60009ec2f9
commit d9dba9142c
8 changed files with 23 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ from . import (
get_device_id,
get_rfx_object,
)
from .const import COMMAND_OFF_LIST, COMMAND_ON_LIST, DATA_RFXTRX_CONFIG
from .const import COMMAND_OFF_LIST, COMMAND_ON_LIST
_LOGGER = logging.getLogger(__name__)
@@ -23,7 +23,7 @@ async def async_setup_entry(
hass, config_entry, async_add_entities,
):
"""Set up config entry."""
discovery_info = hass.data[DATA_RFXTRX_CONFIG]
discovery_info = config_entry.data
device_ids = set()
def supported(event):