1 """Support for Velbus Buttons."""
3 from __future__
import annotations
5 from velbusaio.channels
import (
6 Button
as VelbusaioButton,
7 ButtonCounter
as VelbusaioButtonCounter,
16 from .const
import DOMAIN
17 from .entity
import VelbusEntity, api_call
23 async_add_entities: AddEntitiesCallback,
25 """Set up Velbus switch based on config_entry."""
26 await hass.data[DOMAIN][entry.entry_id][
"tsk"]
27 cntrl = hass.data[DOMAIN][entry.entry_id][
"cntrl"]
32 """Representation of a Velbus Binary Sensor."""
34 _channel: VelbusaioButton | VelbusaioButtonCounter
35 _attr_entity_registry_enabled_default =
False
36 _attr_entity_category = EntityCategory.CONFIG
40 """Handle the button press."""