Use enums in upnp (#62031)
This commit is contained in:
parent
44f4656fe6
commit
633706d04a
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
DEVICE_CLASS_CONNECTIVITY,
|
BinarySensorDeviceClass,
|
||||||
BinarySensorEntity,
|
BinarySensorEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -45,7 +45,7 @@ async def async_setup_entry(
|
||||||
class UpnpStatusBinarySensor(UpnpEntity, BinarySensorEntity):
|
class UpnpStatusBinarySensor(UpnpEntity, BinarySensorEntity):
|
||||||
"""Class for UPnP/IGD binary sensors."""
|
"""Class for UPnP/IGD binary sensors."""
|
||||||
|
|
||||||
_attr_device_class = DEVICE_CLASS_CONNECTIVITY
|
_attr_device_class = BinarySensorDeviceClass.CONNECTIVITY
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue