mirror of
https://github.com/home-assistant/core.git
synced 2025-10-16 23:29:30 +00:00
Remove get_serial helper that is no longer needed. (#22368)
This commit is contained in:
@@ -5,7 +5,7 @@ from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, SUPPORT_BRIGHTNESS,
|
||||
SUPPORT_COLOR, SUPPORT_COLOR_TEMP, Light)
|
||||
|
||||
from . import KNOWN_ACCESSORIES, HomeKitEntity
|
||||
from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
DEPENDENCIES = ['homekit_controller']
|
||||
|
||||
@@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up Homekit lighting."""
|
||||
if discovery_info is not None:
|
||||
accessory = hass.data[KNOWN_ACCESSORIES][discovery_info['serial']]
|
||||
accessory = hass.data[KNOWN_DEVICES][discovery_info['serial']]
|
||||
add_entities([HomeKitLight(accessory, discovery_info)], True)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user