parent
36b56586de
commit
82a9dc620c
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ from aioshelly import Block
|
||||||
|
|
||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import (
|
||||||
ATTR_POSITION,
|
ATTR_POSITION,
|
||||||
|
DEVICE_CLASS_SHUTTER,
|
||||||
SUPPORT_CLOSE,
|
SUPPORT_CLOSE,
|
||||||
SUPPORT_OPEN,
|
SUPPORT_OPEN,
|
||||||
SUPPORT_SET_POSITION,
|
SUPPORT_SET_POSITION,
|
||||||
|
@ -75,6 +76,11 @@ class ShellyCover(ShellyBlockEntity, CoverEntity):
|
||||||
"""Flag supported features."""
|
"""Flag supported features."""
|
||||||
return self._supported_features
|
return self._supported_features
|
||||||
|
|
||||||
|
@property
|
||||||
|
def device_class(self) -> str:
|
||||||
|
"""Return the class of the device."""
|
||||||
|
return DEVICE_CLASS_SHUTTER
|
||||||
|
|
||||||
async def async_close_cover(self, **kwargs):
|
async def async_close_cover(self, **kwargs):
|
||||||
"""Close cover."""
|
"""Close cover."""
|
||||||
self.control_result = await self.block.set_state(go="close")
|
self.control_result = await self.block.set_state(go="close")
|
||||||
|
|
Loading…
Add table
Reference in a new issue