syssi / xiaomi_airpurifier

Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier integration for Home Assistant
Apache License 2.0
456 stars 113 forks source link

Miio Humidifier 'depth' warning - 100+ times per 30min #302

Closed gromar88 closed 1 year ago

gromar88 commented 2 years ago

The problem Miio humidifier integration spams a lot and 'depth' isn't used in *.yaml configuration

Logger: miio.integrations.humidifier.zhimi.airhumidifier Source: custom_components/xiaomi_miio_airpurifier/fan.py:1300 Integration: xiaomi_miio_airpurifier First occurred: 1 października 2022 14:06:57 (3162 occurrences) Last logged: 16:44:05

The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.

What is version of Home Assistant Core has the issue? core-2022.9.7

What was the last working version of Home Assistant Core? core-2022.9.0

What type of installation are you running? Home Assistant Supervised

Integration causing the issue miio humidifier

Link to integration documentation on our website No response

Example YAML snippet No response

Anything in the logs that might be useful for us?

Logger: miio.integrations.humidifier.zhimi.airhumidifier
Source: custom_components/xiaomi_miio_airpurifier/fan.py:1300
Integration: xiaomi_miio_airpurifier 
First occurred: 1 października 2022 14:06:57 (3162 occurrences)
Last logged: 16:44:05

Additional information No response

poisondima commented 1 year ago

I have the same problem

2022-12-11 15:17:06.148 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
2022-12-11 15:17:36.390 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
2022-12-11 15:18:06.349 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
2022-12-11 15:18:36.600 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
2022-12-11 15:19:06.638 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
2022-12-11 15:19:36.551 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
2022-12-11 15:20:06.613 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
2022-12-11 15:20:36.551 WARNING (MainThread) [miio.integrations.humidifier.zhimi.airhumidifier] The 'depth' property is deprecated and will be removed in the future. Use 'water_level' and 'water_tank_detached' properties instead.
syssi commented 1 year ago

I've prepared a new release which should fix the issue.

poisondima commented 1 year ago

Thank you, that attribute is now gone: изображение

syssi commented 1 year ago

Yes. It's superseded by water_level and water_tank_detached.