Use new BinarySensorDeviceClass in minecraft_server (#61924)
This commit is contained in:
parent
2da2de2ac8
commit
d95ce8a026
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
"""The Minecraft Server binary sensor platform."""
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_CONNECTIVITY,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
|
@ -33,7 +33,7 @@ class MinecraftServerStatusBinarySensor(MinecraftServerEntity, BinarySensorEntit
|
|||
server=server,
|
||||
type_name=NAME_STATUS,
|
||||
icon=ICON_STATUS,
|
||||
device_class=DEVICE_CLASS_CONNECTIVITY,
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
)
|
||||
self._is_on = False
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue