1 """Representation of a toggleButton."""
9 from .const
import DOMAIN, ZWaveMePlatform
10 from .entity
import ZWaveMeEntity
12 DEVICE_NAME = ZWaveMePlatform.BUTTON
17 config_entry: ConfigEntry,
18 async_add_entities: AddEntitiesCallback,
20 """Set up the number platform."""
24 controller = hass.data[DOMAIN][config_entry.entry_id]
33 config_entry.async_on_unload(
35 hass, f
"ZWAVE_ME_NEW_{DEVICE_NAME.upper()}", add_new_device
41 """Representation of a ZWaveMe button."""
44 """Turn the entity on."""
def add_new_device(new_device)
Callable[[], None] async_dispatcher_connect(HomeAssistant hass, str signal, Callable[..., Any] target)