From d95ce8a026f914a4aacdc8383bbcf3377f8e3b58 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 15 Dec 2021 20:14:18 +0100 Subject: [PATCH] Use new BinarySensorDeviceClass in minecraft_server (#61924) --- homeassistant/components/minecraft_server/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/minecraft_server/binary_sensor.py b/homeassistant/components/minecraft_server/binary_sensor.py index 79325f9c90c..6e97619a06d 100644 --- a/homeassistant/components/minecraft_server/binary_sensor.py +++ b/homeassistant/components/minecraft_server/binary_sensor.py @@ -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