1 """Support for HomematicIP Cloud button devices."""
3 from __future__
import annotations
5 from homematicip.aio.device
import AsyncWallMountedGarageDoorController
12 from .const
import DOMAIN
13 from .entity
import HomematicipGenericEntity
14 from .hap
import HomematicipHAP
19 config_entry: ConfigEntry,
20 async_add_entities: AddEntitiesCallback,
22 """Set up the HomematicIP button from a config entry."""
23 hap = hass.data[DOMAIN][config_entry.unique_id]
27 for device
in hap.home.devices
28 if isinstance(device, AsyncWallMountedGarageDoorController)
33 """Representation of the HomematicIP Wall mounted Garage Door Controller."""
35 def __init__(self, hap: HomematicipHAP, device) ->
None:
36 """Initialize a wall mounted garage door controller."""
41 """Handle the button press."""
42 await self.
_device_device.send_start_impulse()