Use new BinarySensorDeviceClass enum in balboa (#61292)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
dff77e39ce
commit
d817b4c7ea
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
"""Support for Balboa Spa binary sensors."""
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_MOVING,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
|
||||
|
@ -28,7 +28,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
|
|||
class BalboaSpaBinarySensor(BalboaEntity, BinarySensorEntity):
|
||||
"""Representation of a Balboa Spa binary sensor entity."""
|
||||
|
||||
_attr_device_class = DEVICE_CLASS_MOVING
|
||||
_attr_device_class = BinarySensorDeviceClass.MOVING
|
||||
|
||||
|
||||
class BalboaSpaCircPump(BalboaSpaBinarySensor):
|
||||
|
|
Loading…
Add table
Reference in a new issue