mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix linksys_ap.py by inheriting DeviceScanner (#10947)
As per issue #8638, the class wasn't inheriting from DeviceScanner, this commit patches it up.
This commit is contained in:
parent
2e2d0f48fb
commit
38a1f06d14
@ -11,7 +11,8 @@ import requests
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
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 (
|
from homeassistant.const import (
|
||||||
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_VERIFY_SSL)
|
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_VERIFY_SSL)
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ def get_scanner(hass, config):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
class LinksysAPDeviceScanner(object):
|
class LinksysAPDeviceScanner(DeviceScanner):
|
||||||
"""This class queries a Linksys Access Point."""
|
"""This class queries a Linksys Access Point."""
|
||||||
|
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user