mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
event types
This commit is contained in:
parent
93fe46509f
commit
0c2a0118e2
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from pylutron_caseta import BUTTON_STATUS_PRESSED, BUTTON_STATUS_RELEASED
|
||||||
|
|
||||||
from homeassistant.components.event import EventDeviceClass, EventEntity
|
from homeassistant.components.event import EventDeviceClass, EventEntity
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
@ -34,6 +36,7 @@ class LutronCasetaButtonEvent(LutronCasetaDevice, EventEntity):
|
|||||||
"""Representation of a Lutron pico and keypad button event."""
|
"""Representation of a Lutron pico and keypad button event."""
|
||||||
|
|
||||||
_attr_device_class = EventDeviceClass.BUTTON
|
_attr_device_class = EventDeviceClass.BUTTON
|
||||||
|
_attr_event_types = [BUTTON_STATUS_PRESSED, BUTTON_STATUS_RELEASED]
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user