1 """Support for Velbus switches."""
5 from velbusaio.channels
import Relay
as VelbusRelay
12 from .const
import DOMAIN
13 from .entity
import VelbusEntity, api_call
19 async_add_entities: AddEntitiesCallback,
21 """Set up Velbus switch based on config_entry."""
22 await hass.data[DOMAIN][entry.entry_id][
"tsk"]
23 cntrl = hass.data[DOMAIN][entry.entry_id][
"cntrl"]
28 """Representation of a switch."""
34 """Return true if the switch is on."""
39 """Instruct the switch to turn on."""
44 """Instruct the switch to turn off."""
None async_turn_on(self, **Any kwargs)
None async_turn_off(self, **Any kwargs)
None turn_off(self, **Any kwargs)
None turn_on(self, **Any kwargs)
None async_setup_entry(HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)