1 """Support for Velbus covers."""
3 from __future__
import annotations
7 from duotecno.controller
import PyDuotecno
8 from duotecno.unit
import DuoswitchUnit
15 from .const
import DOMAIN
16 from .entity
import DuotecnoEntity, api_call
22 async_add_entities: AddEntitiesCallback,
24 """Set up the duoswitch endities."""
25 cntrl: PyDuotecno = hass.data[DOMAIN][entry.entry_id]
27 DuotecnoCover(channel)
for channel
in cntrl.get_units(
"DuoswitchUnit")
32 """Representation a Velbus cover."""
35 _attr_supported_features = (
36 CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE | CoverEntityFeature.STOP
41 """Return if the cover is closed."""
46 """Return if the cover is opening."""
51 """Return if the cover is closing."""
61 """Close the cover."""
62 await self.
_unit_unit.close()
67 await self.
_unit_unit.stop()
None async_open_cover(self, **Any kwargs)
bool|None is_closed(self)
None async_stop_cover(self, **Any kwargs)
None async_close_cover(self, **Any kwargs)
None async_setup_entry(HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
None open(self, **Any kwargs)