Use new BinarySensorDeviceClass enum in balboa (#61292)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-12-08 22:11:49 +01:00 committed by GitHub
parent dff77e39ce
commit d817b4c7ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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