From 38a1f06d14d632923ac88e34c4f24ebca70d55c3 Mon Sep 17 00:00:00 2001 From: Mateusz Drab Date: Mon, 4 Dec 2017 17:58:52 +0000 Subject: [PATCH] Fix linksys_ap.py by inheriting DeviceScanner (#10947) As per issue #8638, the class wasn't inheriting from DeviceScanner, this commit patches it up. --- homeassistant/components/device_tracker/linksys_ap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_tracker/linksys_ap.py b/homeassistant/components/device_tracker/linksys_ap.py index 196235f32f4..20dc9052e11 100644 --- a/homeassistant/components/device_tracker/linksys_ap.py +++ b/homeassistant/components/device_tracker/linksys_ap.py @@ -11,7 +11,8 @@ import requests import voluptuous as vol import homeassistant.helpers.config_validation as cv -from homeassistant.components.device_tracker import DOMAIN, PLATFORM_SCHEMA +from homeassistant.components.device_tracker import ( + DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_VERIFY_SSL) @@ -38,7 +39,7 @@ def get_scanner(hass, config): return None -class LinksysAPDeviceScanner(object): +class LinksysAPDeviceScanner(DeviceScanner): """This class queries a Linksys Access Point.""" def __init__(self, config):