custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.93k stars 248 forks source link

[Bug]: Deprecated CONDUCTIVITY constant #1372

Closed Elarion245 closed 4 months ago

Elarion245 commented 4 months ago

What happened?

After upgrading to HA 2024.7 the following warning is reported:

Logger: homeassistant.const Quelle: helpers/deprecation.py:197 Erstmals aufgetreten: 19:09:51 (1 Vorkommnisse) Zuletzt protokolliert: 19:09:51

CONDUCTIVITY was used from ble_monitor, this is a deprecated constant which will be removed in HA Core 2025.6. Use UnitOfConductivity.MICROSIEMENS instead, please report it to the author of the 'ble_monitor' custom integration

Sensor type

Xiaomi HHCC Mi Flower Care

Relevant log output

2024-07-04 19:09:51.049 WARNING (ImportExecutor_0) [homeassistant.const] CONDUCTIVITY was used from ble_monitor, this is a deprecated constant which will be removed in HA Core 2025.6. Use UnitOfConductivity.MICROSIEMENS instead, please report it to the author of the 'ble_monitor' custom integration
2024-07-04 19:09:51.174 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'ble_monitor' calls async_forward_entry_setup for integration, ble_monitor with title: Bluetooth Low Energy Monitor and entry_id: 31143dd8cd98276a53e38a03917e4125, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/ble_monitor/__init__.py, line 354: hass.async_create_task(, please create a bug report at https://github.com/custom-components/ble_monitor/issues
2024-07-04 19:10:11.973 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration ble_monitor with title: Bluetooth Low Energy Monitor and entry_id: 31143dd8cd98276a53e38a03917e4125, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.