1 """Support for Lutron scenes."""
3 from __future__
import annotations
7 from pylutron
import Button, Keypad, Lutron
14 from .
import DOMAIN, LutronData
15 from .entity
import LutronKeypad
20 config_entry: ConfigEntry,
21 async_add_entities: AddEntitiesCallback,
23 """Set up the Lutron scene platform.
25 Adds scenes from the Main Repeater associated with the config_entry as
28 entry_data: LutronData = hass.data[DOMAIN][config_entry.entry_id]
31 LutronScene(area_name, keypad, device, entry_data.client)
32 for area_name, keypad, device, led
in entry_data.scenes
37 """Representation of a Lutron Scene."""
39 _lutron_device: Button
45 lutron_device: Button,
48 """Initialize the scene/button."""
49 super().
__init__(area_name, lutron_device, controller, keypad)
53 """Activate the scene."""
None __init__(self, str area_name, Keypad keypad, Button lutron_device, Lutron controller)
None activate(self, **Any kwargs)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)