mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
parent
36b56586de
commit
82a9dc620c
@ -3,6 +3,7 @@ from aioshelly import Block
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
ATTR_POSITION,
|
||||
DEVICE_CLASS_SHUTTER,
|
||||
SUPPORT_CLOSE,
|
||||
SUPPORT_OPEN,
|
||||
SUPPORT_SET_POSITION,
|
||||
@ -75,6 +76,11 @@ class ShellyCover(ShellyBlockEntity, CoverEntity):
|
||||
"""Flag 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):
|
||||
"""Close cover."""
|
||||
self.control_result = await self.block.set_state(go="close")
|
||||
|
Loading…
x
Reference in New Issue
Block a user