From 4fefbf0408de1d0c2a3de49dcd3a0395cbc932ee Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 18 Jul 2023 23:15:06 +0200 Subject: [PATCH] Remove miflora integration (#96868) --- .coveragerc | 1 - CODEOWNERS | 1 - homeassistant/components/miflora/__init__.py | 1 - .../components/miflora/manifest.json | 8 ----- homeassistant/components/miflora/sensor.py | 29 ------------------- homeassistant/components/miflora/strings.json | 8 ----- homeassistant/generated/integrations.json | 6 ---- 7 files changed, 54 deletions(-) delete mode 100644 homeassistant/components/miflora/__init__.py delete mode 100644 homeassistant/components/miflora/manifest.json delete mode 100644 homeassistant/components/miflora/sensor.py delete mode 100644 homeassistant/components/miflora/strings.json diff --git a/.coveragerc b/.coveragerc index 6cf3f66d8af..163065b7c2a 100644 --- a/.coveragerc +++ b/.coveragerc @@ -707,7 +707,6 @@ omit = homeassistant/components/metoffice/sensor.py homeassistant/components/metoffice/weather.py homeassistant/components/microsoft/tts.py - homeassistant/components/miflora/sensor.py homeassistant/components/mikrotik/hub.py homeassistant/components/mill/climate.py homeassistant/components/mill/sensor.py diff --git a/CODEOWNERS b/CODEOWNERS index 01f486e2704..33ae9d167c2 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -747,7 +747,6 @@ build.json @home-assistant/supervisor /tests/components/meteoclimatic/ @adrianmo /homeassistant/components/metoffice/ @MrHarcombe @avee87 /tests/components/metoffice/ @MrHarcombe @avee87 -/homeassistant/components/miflora/ @danielhiversen @basnijholt /homeassistant/components/mikrotik/ @engrbm87 /tests/components/mikrotik/ @engrbm87 /homeassistant/components/mill/ @danielhiversen diff --git a/homeassistant/components/miflora/__init__.py b/homeassistant/components/miflora/__init__.py deleted file mode 100644 index ed1569e1af0..00000000000 --- a/homeassistant/components/miflora/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""The miflora component.""" diff --git a/homeassistant/components/miflora/manifest.json b/homeassistant/components/miflora/manifest.json deleted file mode 100644 index 8a6e1843d86..00000000000 --- a/homeassistant/components/miflora/manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "domain": "miflora", - "name": "Mi Flora", - "codeowners": ["@danielhiversen", "@basnijholt"], - "documentation": "https://www.home-assistant.io/integrations/miflora", - "iot_class": "local_polling", - "requirements": [] -} diff --git a/homeassistant/components/miflora/sensor.py b/homeassistant/components/miflora/sensor.py deleted file mode 100644 index 764e03786f8..00000000000 --- a/homeassistant/components/miflora/sensor.py +++ /dev/null @@ -1,29 +0,0 @@ -"""Support for Xiaomi Mi Flora BLE plant 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 MiFlora sensor.""" - async_create_issue( - hass, - "miflora", - "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/miflora/strings.json b/homeassistant/components/miflora/strings.json deleted file mode 100644 index 03427e88af9..00000000000 --- a/homeassistant/components/miflora/strings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "issues": { - "replaced": { - "title": "The Mi Flora integration has been replaced", - "description": "The Mi Flora integration stopped working in Home Assistant 2022.7 and replaced by the Xiaomi BLE integration in the 2022.8 release.\n\nThere is no migration path possible, therefore, you have to add your Mi Flora device using the new integration manually.\n\nYour existing Mi Flora 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 1da6a6be9da..4e892a2d499 100644 --- a/homeassistant/generated/integrations.json +++ b/homeassistant/generated/integrations.json @@ -3353,12 +3353,6 @@ } } }, - "miflora": { - "name": "Mi Flora", - "integration_type": "hub", - "config_flow": false, - "iot_class": "local_polling" - }, "mijndomein_energie": { "name": "Mijndomein Energie", "integration_type": "virtual",