mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Deprecate Bosch BMP280 Environmental Sensor (ADR-0019) (#62937)
This commit is contained in:
parent
b21505aa43
commit
980d6c9563
@ -41,6 +41,14 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the sensor platform."""
|
"""Set up the sensor platform."""
|
||||||
|
_LOGGER.warning(
|
||||||
|
"The Bosch BMP280 Environmental Sensor 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"
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# initializing I2C bus using the auto-detected pins
|
# initializing I2C bus using the auto-detected pins
|
||||||
i2c = I2C(board.SCL, board.SDA)
|
i2c = I2C(board.SCL, board.SDA)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user