1 """Support for Tellstick covers using Tellstick Net."""
12 from .
import TelldusLiveClient
13 from .const
import DOMAIN, TELLDUS_DISCOVERY_NEW
14 from .entity
import TelldusLiveEntity
19 config_entry: ConfigEntry,
20 async_add_entities: AddEntitiesCallback,
22 """Set up tellduslive sensors dynamically."""
24 async
def async_discover_cover(device_id):
25 """Discover and add a discovered sensor."""
26 client: TelldusLiveClient = hass.data[DOMAIN]
31 TELLDUS_DISCOVERY_NEW.format(cover.DOMAIN, DOMAIN),
37 """Representation of a cover."""
43 """Return the current position of the cover."""
44 return self.
devicedevice.is_down
47 """Close the cover."""
None close_cover(self, **Any kwargs)
None open_cover(self, **Any kwargs)
None stop_cover(self, **Any kwargs)
None schedule_update_ha_state(self, bool force_refresh=False)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
Callable[[], None] async_dispatcher_connect(HomeAssistant hass, str signal, Callable[..., Any] target)