Use new enums in mullvad (#61934)

This commit is contained in:
epenet 2021-12-15 20:44:41 +01:00 committed by GitHub
parent 6b13dc7285
commit aa83b0388a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
},
)