From 0c2a0118e208033eee06887145dc998c87ffdea0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 29 Jul 2024 21:23:10 -0500 Subject: [PATCH] event types --- homeassistant/components/lutron_caseta/event.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/lutron_caseta/event.py b/homeassistant/components/lutron_caseta/event.py index de276df2d16..6193283f77b 100644 --- a/homeassistant/components/lutron_caseta/event.py +++ b/homeassistant/components/lutron_caseta/event.py @@ -2,6 +2,8 @@ from __future__ import annotations +from pylutron_caseta import BUTTON_STATUS_PRESSED, BUTTON_STATUS_RELEASED + from homeassistant.components.event import EventDeviceClass, EventEntity from homeassistant.core import HomeAssistant 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.""" _attr_device_class = EventDeviceClass.BUTTON + _attr_event_types = [BUTTON_STATUS_PRESSED, BUTTON_STATUS_RELEASED] def __init__( self,