Add device to Lutron (#107467)

* Add typing to Lutron platforms

* Add devices to Lutron

* Add devices to Lutron

* Fix typing

* Fix

* Add name

* Fix lights

* Comment out ESA

* Fix domain

* Fix domain

* Fix

* Make generic keypad base class
This commit is contained in:
Joost Lekkerkerker 2024-01-22 15:52:59 +01:00 committed by GitHub
parent 43daf20be3
commit d0da457a04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 80 additions and 50 deletions

View file

@ -58,14 +58,6 @@ class LutronOccupancySensor(LutronDevice, BinarySensorEntity):
# Error cases will end up treated as unoccupied.
return self._lutron_device.state == OccupancyGroup.State.OCCUPIED
@property
def name(self) -> str:
"""Return the name of the device."""
# The default LutronDevice naming would create 'Kitchen Occ Kitchen',
# but since there can only be one OccupancyGroup per area we go
# with something shorter.
return f"{self._area_name} Occupancy"
@property
def extra_state_attributes(self) -> Mapping[str, Any] | None:
"""Return the state attributes."""