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