mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Use new BinarySensorDeviceClass in minecraft_server (#61924)
This commit is contained in:
parent
2da2de2ac8
commit
d95ce8a026
@ -1,7 +1,7 @@
|
|||||||
"""The Minecraft Server binary sensor platform."""
|
"""The Minecraft Server binary sensor platform."""
|
||||||
|
|
||||||
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
|
||||||
@ -33,7 +33,7 @@ class MinecraftServerStatusBinarySensor(MinecraftServerEntity, BinarySensorEntit
|
|||||||
server=server,
|
server=server,
|
||||||
type_name=NAME_STATUS,
|
type_name=NAME_STATUS,
|
||||||
icon=ICON_STATUS,
|
icon=ICON_STATUS,
|
||||||
device_class=DEVICE_CLASS_CONNECTIVITY,
|
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||||
)
|
)
|
||||||
self._is_on = False
|
self._is_on = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user