Update ZHA dependencies (#24718)

* update deps and remove legacy constants bridge

* run deps script and fix test import
This commit is contained in:
David F. Mulcahey 2019-06-23 13:43:19 -04:00 committed by GitHub
parent b99275f6a5
commit d22bb8fc7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 12 deletions

View file

@ -1,4 +0,0 @@
"""Backwards compatible constants bridge."""
# pylint: disable=W0614,W0401
from .core.const import * # noqa: F401,F403
from .core.registries import * # noqa: F401,F403

View file

@ -7,7 +7,7 @@ import time
from homeassistant.core import callback
from homeassistant.util import slugify
from .entity import ZhaEntity
from .const import POWER_CONFIGURATION_CHANNEL, SIGNAL_STATE_ATTR
from .core.const import POWER_CONFIGURATION_CHANNEL, SIGNAL_STATE_ATTR
_LOGGER = logging.getLogger(__name__)

View file

@ -9,7 +9,7 @@ from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.event import async_track_time_interval
import homeassistant.util.color as color_util
from .const import (
from .core.const import (
DATA_ZHA, DATA_ZHA_DISPATCHERS, ZHA_DISCOVERY_NEW, COLOR_CHANNEL,
ON_OFF_CHANNEL, LEVEL_CHANNEL, SIGNAL_ATTR_UPDATED, SIGNAL_SET_LEVEL
)

View file

@ -5,9 +5,9 @@
"documentation": "https://www.home-assistant.io/components/zha",
"requirements": [
"bellows-homeassistant==0.8.1",
"zha-quirks==0.0.14",
"zha-quirks==0.0.15",
"zigpy-deconz==0.1.6",
"zigpy-homeassistant==0.5.0",
"zigpy-homeassistant==0.6.1",
"zigpy-xbee-homeassistant==0.3.0"
],
"dependencies": [],

View file

@ -1921,7 +1921,7 @@ zengge==0.2
zeroconf==0.23.0
# homeassistant.components.zha
zha-quirks==0.0.14
zha-quirks==0.0.15
# homeassistant.components.zhong_hong
zhong_hong_hvac==1.0.9
@ -1933,7 +1933,7 @@ ziggo-mediabox-xl==1.1.0
zigpy-deconz==0.1.6
# homeassistant.components.zha
zigpy-homeassistant==0.5.0
zigpy-homeassistant==0.6.1
# homeassistant.components.zha
zigpy-xbee-homeassistant==0.3.0

View file

@ -371,4 +371,4 @@ wakeonlan==1.1.6
zeroconf==0.23.0
# homeassistant.components.zha
zigpy-homeassistant==0.5.0
zigpy-homeassistant==0.6.1

View file

@ -1,7 +1,7 @@
"""Tests for ZHA config flow."""
from asynctest import patch
from homeassistant.components.zha import config_flow
from homeassistant.components.zha.const import DOMAIN
from homeassistant.components.zha.core.const import DOMAIN
from tests.common import MockConfigEntry