mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Use BinarySensorDeviceClass in lutron (#61886)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
61a6d278b8
commit
5b77fb9a0f
@ -2,7 +2,7 @@
|
|||||||
from pylutron import OccupancyGroup
|
from pylutron import OccupancyGroup
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
DEVICE_CLASS_OCCUPANCY,
|
BinarySensorDeviceClass,
|
||||||
BinarySensorEntity,
|
BinarySensorEntity,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ class LutronOccupancySensor(LutronDevice, BinarySensorEntity):
|
|||||||
reported as a single occupancy group.
|
reported as a single occupancy group.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_attr_device_class = DEVICE_CLASS_OCCUPANCY
|
_attr_device_class = BinarySensorDeviceClass.OCCUPANCY
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user