Use BinarySensorDeviceClass in lutron (#61886)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/61842/head
epenet 2021-12-15 15:57:33 +01:00 committed by GitHub
parent 61a6d278b8
commit 5b77fb9a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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):