diff --git a/homeassistant/components/tradfri/cover.py b/homeassistant/components/tradfri/cover.py index 9b831dce0ec..ae7d6a09ce3 100644 --- a/homeassistant/components/tradfri/cover.py +++ b/homeassistant/components/tradfri/cover.py @@ -1,12 +1,6 @@ """Support for IKEA Tradfri covers.""" -from homeassistant.components.cover import ( - CoverDevice, - ATTR_POSITION, - SUPPORT_OPEN, - SUPPORT_CLOSE, - SUPPORT_SET_POSITION, -) +from homeassistant.components.cover import CoverDevice, ATTR_POSITION from .base_class import TradfriBaseDevice from .const import KEY_GATEWAY, KEY_API, CONF_GATEWAY_ID @@ -34,11 +28,6 @@ class TradfriCover(TradfriBaseDevice, CoverDevice): self._refresh(device) - @property - def supported_features(self): - """Flag supported features.""" - return SUPPORT_OPEN | SUPPORT_CLOSE | SUPPORT_SET_POSITION - @property def current_cover_position(self): """Return current position of cover. @@ -59,6 +48,10 @@ class TradfriCover(TradfriBaseDevice, CoverDevice): """Close cover.""" await self._api(self._device_control.set_state(100)) + async def async_stop_cover(self, **kwargs): + """Close cover.""" + await self._api(self._device_control.trigger_blind()) + @property def is_closed(self): """Return if the cover is closed or not.""" diff --git a/homeassistant/components/tradfri/manifest.json b/homeassistant/components/tradfri/manifest.json index d9fa4ad5696..229db67becd 100644 --- a/homeassistant/components/tradfri/manifest.json +++ b/homeassistant/components/tradfri/manifest.json @@ -3,7 +3,7 @@ "name": "Tradfri", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/tradfri", - "requirements": ["pytradfri[async]==6.3.1"], + "requirements": ["pytradfri[async]==6.4.0"], "homekit": { "models": ["TRADFRI"] }, diff --git a/requirements_all.txt b/requirements_all.txt index 069253d9d23..8ad0f091e66 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1612,7 +1612,7 @@ pytraccar==0.9.0 pytrackr==0.0.5 # homeassistant.components.tradfri -pytradfri[async]==6.3.1 +pytradfri[async]==6.4.0 # homeassistant.components.trafikverket_train # homeassistant.components.trafikverket_weatherstation diff --git a/requirements_test_all.txt b/requirements_test_all.txt index eb38ac61e2e..25ca8abdbf3 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -534,7 +534,7 @@ python_awair==0.0.4 pytraccar==0.9.0 # homeassistant.components.tradfri -pytradfri[async]==6.3.1 +pytradfri[async]==6.4.0 # homeassistant.components.vesync pyvesync==1.1.0