From 6d1c4a4f5f97de88d4b5903495525692162a98ba Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 21 Dec 2021 17:17:58 +0100 Subject: [PATCH] Deprecate BH1750 integration (ADR-0019) (#62493) --- homeassistant/components/bh1750/sensor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/bh1750/sensor.py b/homeassistant/components/bh1750/sensor.py index 8eab85e5f1d..a25a645d47f 100644 --- a/homeassistant/components/bh1750/sensor.py +++ b/homeassistant/components/bh1750/sensor.py @@ -64,6 +64,12 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Set up the BH1750 sensor.""" + _LOGGER.warning( + "The BH1750 integration is deprecated and will be removed " + "in Home Assistant Core 2022.4; this integration is removed under " + "Architectural Decision Record 0019, more information can be found here: " + "https://github.com/home-assistant/architecture/blob/master/adr/0019-GPIO.md" + ) name = config[CONF_NAME] bus_number = config[CONF_I2C_BUS]