Use new BinarySensorDeviceClass enum in digital_ocean (#61350)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/61361/head
epenet 2021-12-09 13:22:22 +01:00 committed by GitHub
parent f5c77ef5d0
commit 2e99fbc1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ import logging
import voluptuous as vol
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_MOVING,
PLATFORM_SCHEMA,
BinarySensorDeviceClass,
BinarySensorEntity,
)
from homeassistant.const import ATTR_ATTRIBUTION
@ -74,7 +74,7 @@ class DigitalOceanBinarySensor(BinarySensorEntity):
@property
def device_class(self):
"""Return the class of this sensor."""
return DEVICE_CLASS_MOVING
return BinarySensorDeviceClass.MOVING
@property
def extra_state_attributes(self):