diff --git a/homeassistant/components/bond/cover.py b/homeassistant/components/bond/cover.py index 0e4a1dbc727..de50eb45b3e 100644 --- a/homeassistant/components/bond/cover.py +++ b/homeassistant/components/bond/cover.py @@ -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) diff --git a/homeassistant/components/bond/fan.py b/homeassistant/components/bond/fan.py index b048154ba01..8b0463fbd9f 100644 --- a/homeassistant/components/bond/fan.py +++ b/homeassistant/components/bond/fan.py @@ -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) diff --git a/homeassistant/components/bond/manifest.json b/homeassistant/components/bond/manifest.json index a9a7e3f1e95..b9e57981400 100644 --- a/homeassistant/components/bond/manifest.json +++ b/homeassistant/components/bond/manifest.json @@ -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" diff --git a/requirements_all.txt b/requirements_all.txt index 8e6dcf3c96e..8912eee669b 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 2eab314ac65..c4037044f26 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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 diff --git a/tests/components/bond/test_cover.py b/tests/components/bond/test_cover.py index b76d2e9165d..695c5410247 100644 --- a/tests/components/bond/test_cover.py +++ b/tests/components/bond/test_cover.py @@ -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): diff --git a/tests/components/bond/test_fan.py b/tests/components/bond/test_fan.py index eab05657b77..17818042d4b 100644 --- a/tests/components/bond/test_fan.py +++ b/tests/components/bond/test_fan.py @@ -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"], }