Upgrade bond-home to 0.0.9 (#37764)
parent
f9ce3f3bc4
commit
b7318b1914
|
@ -1,7 +1,7 @@
|
|||
"""Support for Bond covers."""
|
||||
from typing import Any, Callable, List, Optional
|
||||
|
||||
from bond import BOND_DEVICE_TYPE_MOTORIZED_SHADES, Bond
|
||||
from bond import Bond, DeviceTypes
|
||||
|
||||
from homeassistant.components.cover import DEVICE_CLASS_SHADE, CoverEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
|
@ -26,7 +26,7 @@ async def async_setup_entry(
|
|||
covers = [
|
||||
BondCover(bond, device)
|
||||
for device in devices
|
||||
if device.type == BOND_DEVICE_TYPE_MOTORIZED_SHADES
|
||||
if device.type == DeviceTypes.MOTORIZED_SHADES
|
||||
]
|
||||
|
||||
async_add_entities(covers, True)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Support for Bond fans."""
|
||||
from typing import Any, Callable, List, Optional
|
||||
|
||||
from bond import BOND_DEVICE_TYPE_CEILING_FAN, Bond
|
||||
from bond import Bond, DeviceTypes
|
||||
|
||||
from homeassistant.components.fan import (
|
||||
SPEED_HIGH,
|
||||
|
@ -33,7 +33,7 @@ async def async_setup_entry(
|
|||
fans = [
|
||||
BondFan(bond, device)
|
||||
for device in devices
|
||||
if device.type == BOND_DEVICE_TYPE_CEILING_FAN
|
||||
if device.type == DeviceTypes.CEILING_FAN
|
||||
]
|
||||
|
||||
async_add_entities(fans, True)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/bond",
|
||||
"requirements": [
|
||||
"bond-home==0.0.8"
|
||||
"bond-home==0.0.9"
|
||||
],
|
||||
"codeowners": [
|
||||
"@prystupa"
|
||||
|
|
|
@ -353,7 +353,7 @@ blockchain==1.4.4
|
|||
bomradarloop==0.1.4
|
||||
|
||||
# homeassistant.components.bond
|
||||
bond-home==0.0.8
|
||||
bond-home==0.0.9
|
||||
|
||||
# homeassistant.components.amazon_polly
|
||||
# homeassistant.components.route53
|
||||
|
|
|
@ -178,7 +178,7 @@ blinkpy==0.15.1
|
|||
bomradarloop==0.1.4
|
||||
|
||||
# homeassistant.components.bond
|
||||
bond-home==0.0.8
|
||||
bond-home==0.0.9
|
||||
|
||||
# homeassistant.components.braviatv
|
||||
bravia-tv==1.0.6
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from bond import BOND_DEVICE_TYPE_MOTORIZED_SHADES
|
||||
from bond import DeviceTypes
|
||||
|
||||
from homeassistant import core
|
||||
from homeassistant.components.cover import DOMAIN as COVER_DOMAIN
|
||||
|
@ -25,7 +25,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
def shades(name: str):
|
||||
"""Create motorized shades with given name."""
|
||||
return {"name": name, "type": BOND_DEVICE_TYPE_MOTORIZED_SHADES}
|
||||
return {"name": name, "type": DeviceTypes.MOTORIZED_SHADES}
|
||||
|
||||
|
||||
async def test_entity_registry(hass: core.HomeAssistant):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Tests for the Bond fan device."""
|
||||
from datetime import timedelta
|
||||
|
||||
from bond import BOND_DEVICE_TYPE_CEILING_FAN
|
||||
from bond import DeviceTypes
|
||||
|
||||
from homeassistant import core
|
||||
from homeassistant.components import fan
|
||||
|
@ -20,7 +20,7 @@ def ceiling_fan(name: str):
|
|||
"""Create a ceiling fan with given name."""
|
||||
return {
|
||||
"name": name,
|
||||
"type": BOND_DEVICE_TYPE_CEILING_FAN,
|
||||
"type": DeviceTypes.CEILING_FAN,
|
||||
"actions": ["SetSpeed"],
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue