mirror of
https://github.com/home-assistant/core.git
synced 2025-11-06 09:29:27 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user