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:
parent
43daf20be3
commit
d0da457a04
7 changed files with 80 additions and 50 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue