From 04d1f7fdb162f59f8e740fd1fc17e87d0ca81fd3 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Thu, 4 May 2017 18:40:30 -0700 Subject: [PATCH] Make Hound fixes --- homeassistant/components/fan/insteon_local.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/fan/insteon_local.py b/homeassistant/components/fan/insteon_local.py index 6641459a148..7ff6ec98b5f 100644 --- a/homeassistant/components/fan/insteon_local.py +++ b/homeassistant/components/fan/insteon_local.py @@ -13,7 +13,6 @@ from homeassistant.components.fan import ( ATTR_SPEED, SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH, SUPPORT_SET_SPEED, FanEntity) from homeassistant.helpers.entity import ToggleEntity -from homeassistant.loader import get_component import homeassistant.util as util _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)) for device_id in conf_fans: - add_devices_callback([InsteonLocalFanDevice(insteonhub.fan(device_id), - name)]) + add_devices(InsteonLocalFanDevice(insteonhub.fan(device_id))) class InsteonLocalFanDevice(FanEntity): """An abstract Class for an Insteon node.""" - def __init__(self, node, name): + def __init__(self, node): """Initialize the device.""" self.node = node - self.node.deviceName = name self._speed = SPEED_OFF @property