Skip to content

Commit

Permalink
Fix linksys_ap.py by inheriting DeviceScanner (home-assistant#10947)
Browse files Browse the repository at this point in the history
As per issue home-assistant#8638, the class wasn't inheriting from DeviceScanner, this commit patches it up.
  • Loading branch information
mateuszdrab authored and MartinHjelmare committed Dec 4, 2017
1 parent 2e2d0f4 commit 38a1f06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/device_tracker/linksys_ap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
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)

Expand All @@ -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):
Expand Down

0 comments on commit 38a1f06

Please sign in to comment.