Use enums in upnp (#62031)
parent
44f4656fe6
commit
633706d04a
homeassistant/components/upnp
|
@ -2,7 +2,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_CONNECTIVITY,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
|
@ -45,7 +45,7 @@ async def async_setup_entry(
|
|||
class UpnpStatusBinarySensor(UpnpEntity, BinarySensorEntity):
|
||||
"""Class for UPnP/IGD binary sensors."""
|
||||
|
||||
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
|
||||
_attr_device_class = BinarySensorDeviceClass.CONNECTIVITY
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
Loading…
Reference in New Issue