mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Use new enums in mullvad (#61934)
This commit is contained in:
parent
6b13dc7285
commit
aa83b0388a
@ -1,6 +1,6 @@
|
||||
"""Setup Mullvad VPN Binary Sensors."""
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_CONNECTIVITY,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.const import CONF_DEVICE_CLASS, CONF_ID, CONF_NAME
|
||||
@ -12,7 +12,7 @@ BINARY_SENSORS = (
|
||||
{
|
||||
CONF_ID: "mullvad_exit_ip",
|
||||
CONF_NAME: "Mullvad Exit IP",
|
||||
CONF_DEVICE_CLASS: DEVICE_CLASS_CONNECTIVITY,
|
||||
CONF_DEVICE_CLASS: BinarySensorDeviceClass.CONNECTIVITY,
|
||||
},
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user