mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 06:05:10 +02:00
Make Hound fixes
This commit is contained in:
@@ -13,7 +13,6 @@ from homeassistant.components.fan import (
|
|||||||
ATTR_SPEED, SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH,
|
ATTR_SPEED, SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH,
|
||||||
SUPPORT_SET_SPEED, FanEntity)
|
SUPPORT_SET_SPEED, FanEntity)
|
||||||
from homeassistant.helpers.entity import ToggleEntity
|
from homeassistant.helpers.entity import ToggleEntity
|
||||||
from homeassistant.loader import get_component
|
|
||||||
import homeassistant.util as util
|
import homeassistant.util as util
|
||||||
|
|
||||||
_CONFIGURING = {}
|
_CONFIGURING = {}
|
||||||
@@ -61,17 +60,15 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
conf_fans = config_from_file(hass.config.path(INSTEON_LOCAL_FANS_CONF))
|
conf_fans = config_from_file(hass.config.path(INSTEON_LOCAL_FANS_CONF))
|
||||||
for device_id in conf_fans:
|
for device_id in conf_fans:
|
||||||
add_devices_callback([InsteonLocalFanDevice(insteonhub.fan(device_id),
|
add_devices(InsteonLocalFanDevice(insteonhub.fan(device_id)))
|
||||||
name)])
|
|
||||||
|
|
||||||
|
|
||||||
class InsteonLocalFanDevice(FanEntity):
|
class InsteonLocalFanDevice(FanEntity):
|
||||||
"""An abstract Class for an Insteon node."""
|
"""An abstract Class for an Insteon node."""
|
||||||
|
|
||||||
def __init__(self, node, name):
|
def __init__(self, node):
|
||||||
"""Initialize the device."""
|
"""Initialize the device."""
|
||||||
self.node = node
|
self.node = node
|
||||||
self.node.deviceName = name
|
|
||||||
self._speed = SPEED_OFF
|
self._speed = SPEED_OFF
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user