mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
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,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…
x
Reference in New Issue
Block a user