mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Use Enums in zoneminder (#61975)
This commit is contained in:
parent
62f411fccc
commit
b0f5e7dabf
@ -1,6 +1,6 @@
|
||||
"""Support for ZoneMinder binary sensors."""
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_CONNECTIVITY,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
|
||||
@ -38,7 +38,7 @@ class ZMAvailabilitySensor(BinarySensorEntity):
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Return the class of this device, from component DEVICE_CLASSES."""
|
||||
return DEVICE_CLASS_CONNECTIVITY
|
||||
return BinarySensorDeviceClass.CONNECTIVITY
|
||||
|
||||
def update(self):
|
||||
"""Update the state of this sensor (availability of ZoneMinder)."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user