Pyunifi dep (#4754)
* change unifi dependency to pyunifi * Change dependency to fix #4336 * Run gen_requirements_all.py script * Changed import statement to reflect new package * Updated test_unifiy.py with different module * Update requirements_all.txt
This commit is contained in:
parent
8c628071f3
commit
8ca2345fd4
3 changed files with 6 additions and 6 deletions
|
@ -14,7 +14,7 @@ from homeassistant.components.device_tracker import DOMAIN, PLATFORM_SCHEMA
|
|||
from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD
|
||||
|
||||
# Unifi package doesn't list urllib3 as a requirement
|
||||
REQUIREMENTS = ['urllib3', 'unifi==1.2.5']
|
||||
REQUIREMENTS = ['urllib3', 'pyunifi==1.3']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
CONF_PORT = 'port'
|
||||
|
@ -34,7 +34,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||
|
||||
def get_scanner(hass, config):
|
||||
"""Setup Unifi device_tracker."""
|
||||
from unifi.controller import Controller
|
||||
from pyunifi.controller import Controller
|
||||
|
||||
host = config[DOMAIN].get(CONF_HOST)
|
||||
username = config[DOMAIN].get(CONF_USERNAME)
|
||||
|
|
|
@ -479,6 +479,9 @@ python-twitch==1.3.0
|
|||
# homeassistant.components.wink
|
||||
python-wink==0.11.0
|
||||
|
||||
# homeassistant.components.device_tracker.unifi
|
||||
pyunifi==1.3
|
||||
|
||||
# homeassistant.components.keyboard
|
||||
# pyuserinput==0.1.11
|
||||
|
||||
|
@ -569,9 +572,6 @@ twilio==5.4.0
|
|||
# homeassistant.components.sensor.uber
|
||||
uber_rides==0.2.7
|
||||
|
||||
# homeassistant.components.device_tracker.unifi
|
||||
unifi==1.2.5
|
||||
|
||||
# homeassistant.components.device_tracker.unifi
|
||||
urllib3
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import unittest
|
|||
from unittest import mock
|
||||
import urllib
|
||||
|
||||
from unifi import controller
|
||||
from pyunifi import controller
|
||||
import voluptuous as vol
|
||||
|
||||
from tests.common import get_test_home_assistant
|
||||
|
|
Loading…
Add table
Reference in a new issue