From e258f36ded1570b8115a0a4c56cce0fa0e820d15 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Mon, 20 Mar 2023 12:06:40 +0100 Subject: [PATCH] Remove deprecated binary update sensor from AVM FRITZ!Box Tools (#89940) --- homeassistant/components/fritz/binary_sensor.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/homeassistant/components/fritz/binary_sensor.py b/homeassistant/components/fritz/binary_sensor.py index d355906ec6e..918a114fdf2 100644 --- a/homeassistant/components/fritz/binary_sensor.py +++ b/homeassistant/components/fritz/binary_sensor.py @@ -41,15 +41,6 @@ SENSOR_TYPES: tuple[FritzBinarySensorEntityDescription, ...] = ( device_class=BinarySensorDeviceClass.PLUG, entity_category=EntityCategory.DIAGNOSTIC, ), - FritzBinarySensorEntityDescription( - # Deprecated, scheduled to be removed in 2022.7 (#70096) - entity_registry_enabled_default=False, - key="firmware_update", - name="Firmware Update", - device_class=BinarySensorDeviceClass.UPDATE, - entity_category=EntityCategory.DIAGNOSTIC, - is_suitable=lambda info: True, - ), ) @@ -89,13 +80,6 @@ class FritzBoxBinarySensor(FritzBoxBaseEntity, BinarySensorEntity): def update(self) -> None: """Update data.""" _LOGGER.debug("Updating FRITZ!Box binary sensors") - - if self.entity_description.key == "firmware_update": - self._attr_is_on = self._avm_wrapper.update_available - self._attr_extra_state_attributes = { - "installed_version": self._avm_wrapper.current_firmware, - "latest_available_version": self._avm_wrapper.latest_firmware, - } if self.entity_description.key == "is_connected": self._attr_is_on = bool(self._avm_wrapper.fritz_status.is_connected) elif self.entity_description.key == "is_linked":