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 authored and GitHub committed 2020-07-21 09:44:00 +02:00
1 parent 60009ec2f9
commit d9dba9142c
8 files changed
+23 -32

No files matched your search

+1 -2
View File
@@ -20,7 +20,6 @@ from . import (
get_device_id,
get_rfx_object,
)
from .const import DATA_RFXTRX_CONFIG
_LOGGER = logging.getLogger(__name__)
@@ -57,7 +56,7 @@ async def async_setup_entry(
hass, config_entry, async_add_entities,
):
"""Set up platform."""
discovery_info = hass.data[DATA_RFXTRX_CONFIG]
discovery_info = config_entry.data
data_ids = set()
def supported(event):