Xiaomi MiIO Device Tracker: Unused variable removed (#13948)

* Unused variable removed and pinning added to be in sync with all xiaomi_miio components

* requirements_all.txt updated
pull/10688/head^2
Sebastian Muszynski 2018-04-17 11:45:19 +02:00 committed by Pascal Vizeli
parent 534aa0e4b5
commit add0afe31a
2 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_TOKEN): vol.All(cv.string, vol.Length(min=32, max=32)),
})
REQUIREMENTS = ['python-miio==0.3.9']
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
def get_scanner(hass, config):
@ -41,7 +41,7 @@ def get_scanner(hass, config):
device_info.model,
device_info.firmware_version,
device_info.hardware_version)
scanner = XiaomiMiioDeviceScanner(hass, device)
scanner = XiaomiMiioDeviceScanner(device)
except DeviceException as ex:
_LOGGER.error("Device unavailable or token incorrect: %s", ex)
@ -51,7 +51,7 @@ def get_scanner(hass, config):
class XiaomiMiioDeviceScanner(DeviceScanner):
"""This class queries a Xiaomi Mi WiFi Repeater."""
def __init__(self, hass, device):
def __init__(self, device):
"""Initialize the scanner."""
self.device = device

View File

@ -203,6 +203,7 @@ colorlog==3.1.2
concord232==0.15
# homeassistant.components.climate.eq3btsmart
# homeassistant.components.device_tracker.xiaomi_miio
# homeassistant.components.fan.xiaomi_miio
# homeassistant.components.light.xiaomi_miio
# homeassistant.components.remote.xiaomi_miio