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:
1 parent
60009ec2f9
commit
d9dba9142c
8 files changed
+23
-32
No files matched your search
@@ -17,7 +17,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
|
||||
|
||||
DATA_SWITCH = f"{DOMAIN}_switch"
|
||||
|
||||
@@ -28,7 +28,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):
|
||||
|
||||
Reference in new issue
Block a user