From 727a72fbaa54a6d3a65f24616acdb65a26d6d874 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 18 Jul 2023 23:19:03 +0200 Subject: [PATCH] Remove mitemp_bt integration (#96869) --- .coveragerc | 1 - .../components/mitemp_bt/__init__.py | 1 - .../components/mitemp_bt/manifest.json | 8 ----- homeassistant/components/mitemp_bt/sensor.py | 29 ------------------- .../components/mitemp_bt/strings.json | 8 ----- homeassistant/generated/integrations.json | 6 ---- 6 files changed, 53 deletions(-) delete mode 100644 homeassistant/components/mitemp_bt/__init__.py delete mode 100644 homeassistant/components/mitemp_bt/manifest.json delete mode 100644 homeassistant/components/mitemp_bt/sensor.py delete mode 100644 homeassistant/components/mitemp_bt/strings.json diff --git a/.coveragerc b/.coveragerc index 163065b7c2a..b9ff3c4ea0b 100644 --- a/.coveragerc +++ b/.coveragerc @@ -712,7 +712,6 @@ omit = homeassistant/components/mill/sensor.py homeassistant/components/minecraft_server/__init__.py homeassistant/components/minio/minio_helper.py - homeassistant/components/mitemp_bt/sensor.py homeassistant/components/mjpeg/camera.py homeassistant/components/mjpeg/util.py homeassistant/components/mochad/__init__.py diff --git a/homeassistant/components/mitemp_bt/__init__.py b/homeassistant/components/mitemp_bt/__init__.py deleted file mode 100644 index 785956572af..00000000000 --- a/homeassistant/components/mitemp_bt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""The mitemp_bt component.""" diff --git a/homeassistant/components/mitemp_bt/manifest.json b/homeassistant/components/mitemp_bt/manifest.json deleted file mode 100644 index 2709c08ad78..00000000000 --- a/homeassistant/components/mitemp_bt/manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "domain": "mitemp_bt", - "name": "Xiaomi Mijia BLE Temperature and Humidity Sensor", - "codeowners": [], - "documentation": "https://www.home-assistant.io/integrations/mitemp_bt", - "iot_class": "local_polling", - "requirements": [] -} diff --git a/homeassistant/components/mitemp_bt/sensor.py b/homeassistant/components/mitemp_bt/sensor.py deleted file mode 100644 index a1646bed51c..00000000000 --- a/homeassistant/components/mitemp_bt/sensor.py +++ /dev/null @@ -1,29 +0,0 @@ -"""Support for Xiaomi Mi Temp BLE environmental sensor.""" -from __future__ import annotations - -from homeassistant.components.sensor import PLATFORM_SCHEMA_BASE -from homeassistant.core import HomeAssistant -from homeassistant.helpers.entity_platform import AddEntitiesCallback -from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue -from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType - -PLATFORM_SCHEMA = PLATFORM_SCHEMA_BASE - - -async def async_setup_platform( - hass: HomeAssistant, - config: ConfigType, - async_add_entities: AddEntitiesCallback, - discovery_info: DiscoveryInfoType | None = None, -) -> None: - """Set up the MiTempBt sensor.""" - async_create_issue( - hass, - "mitemp_bt", - "replaced", - breaks_in_ha_version="2022.8.0", - is_fixable=False, - severity=IssueSeverity.ERROR, - translation_key="replaced", - learn_more_url="https://www.home-assistant.io/integrations/xiaomi_ble/", - ) diff --git a/homeassistant/components/mitemp_bt/strings.json b/homeassistant/components/mitemp_bt/strings.json deleted file mode 100644 index 1f9f031a3bb..00000000000 --- a/homeassistant/components/mitemp_bt/strings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "issues": { - "replaced": { - "title": "The Xiaomi Mijia BLE Temperature and Humidity Sensor integration has been replaced", - "description": "The Xiaomi Mijia BLE Temperature and Humidity Sensor integration stopped working in Home Assistant 2022.7 and was replaced by the Xiaomi BLE integration in the 2022.8 release.\n\nThere is no migration path possible, therefore, you have to add your Xiaomi Mijia BLE device using the new integration manually.\n\nYour existing Xiaomi Mijia BLE Temperature and Humidity Sensor YAML configuration is no longer used by Home Assistant. Remove the YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue." - } - } -} diff --git a/homeassistant/generated/integrations.json b/homeassistant/generated/integrations.json index 4e892a2d499..99566340ccd 100644 --- a/homeassistant/generated/integrations.json +++ b/homeassistant/generated/integrations.json @@ -3382,12 +3382,6 @@ "config_flow": false, "iot_class": "cloud_push" }, - "mitemp_bt": { - "name": "Xiaomi Mijia BLE Temperature and Humidity Sensor", - "integration_type": "hub", - "config_flow": false, - "iot_class": "local_polling" - }, "mjpeg": { "name": "MJPEG IP Camera", "integration_type": "hub",