Update HAP-python to 2.3.0 (#17778)
* Update HAP-python to 2.3.0 * Fix tests
This commit is contained in:
1 parent
af03390c4f
commit
bc67115df3
6 files changed
+8
-8
No files matched your search
@@ -29,7 +29,7 @@ from .const import (
|
||||
from .util import (
|
||||
show_setup_message, validate_entity_config, validate_media_player_features)
|
||||
|
||||
REQUIREMENTS = ['HAP-python==2.2.2']
|
||||
REQUIREMENTS = ['HAP-python==2.3.0']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
"""Class to hold all switch accessories."""
|
||||
import logging
|
||||
|
||||
from pyhap.const import CATEGORY_OUTLET, CATEGORY_SWITCH
|
||||
from pyhap.const import (
|
||||
CATEGORY_FAUCET, CATEGORY_OUTLET, CATEGORY_SHOWER_HEAD,
|
||||
CATEGORY_SPRINKLER, CATEGORY_SWITCH)
|
||||
|
||||
from homeassistant.components.switch import DOMAIN
|
||||
from homeassistant.const import (
|
||||
@@ -17,10 +19,6 @@ from .const import (
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CATEGORY_SPRINKLER = 28
|
||||
CATEGORY_FAUCET = 29
|
||||
CATEGORY_SHOWER_HEAD = 30
|
||||
|
||||
VALVE_TYPE = {
|
||||
TYPE_FAUCET: (CATEGORY_FAUCET, 3),
|
||||
TYPE_SHOWER: (CATEGORY_SHOWER_HEAD, 2),
|
||||
|
||||
Reference in new issue
Block a user