Update HAP-python to 2.3.0 (#17778)
* Update HAP-python to 2.3.0 * Fix tests
This commit is contained in:
parent
577cf0991f
commit
599390d985
6 changed files with 8 additions and 8 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue