mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Remove get_serial helper that is no longer needed. (#22368)
This commit is contained in:
@@ -8,7 +8,7 @@ from homeassistant.components.cover import (
|
||||
from homeassistant.const import (
|
||||
STATE_CLOSED, STATE_CLOSING, STATE_OPEN, STATE_OPENING)
|
||||
|
||||
from . import KNOWN_ACCESSORIES, HomeKitEntity
|
||||
from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
STATE_STOPPED = 'stopped'
|
||||
|
||||
@@ -41,7 +41,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up HomeKit Cover support."""
|
||||
if discovery_info is None:
|
||||
return
|
||||
accessory = hass.data[KNOWN_ACCESSORIES][discovery_info['serial']]
|
||||
accessory = hass.data[KNOWN_DEVICES][discovery_info['serial']]
|
||||
|
||||
if discovery_info['device-type'] == 'garage-door-opener':
|
||||
add_entities([HomeKitGarageDoorCover(accessory, discovery_info)],
|
||||
|
||||
Reference in New Issue
Block a user