robovac icon indicating copy to clipboard operation
robovac copied to clipboard

Deprecated constants which will be removed in HA Core 2026.1

Open FakeTruth opened this issue 9 months ago • 4 comments

Hi there, thank you for taking the time to create this integration. I just installed it through HACS and noticed some warnings in my Home Assistant logs:

2025-03-11 22:24:48.916 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_CLEANING was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.CLEANING instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.919 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_DOCKED was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.DOCKED instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.922 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_ERROR was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.ERROR instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.925 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_IDLE was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.IDLE instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.929 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_RETURNING was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.RETURNING instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.933 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_CLEANING was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.CLEANING instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.936 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_DOCKED was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.DOCKED instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.940 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_ERROR was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.ERROR instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.943 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_IDLE was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.IDLE instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.946 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_RETURNING was used from robovac, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.RETURNING instead, please report it to the author of the 'robovac' custom integration
2025-03-11 22:24:48.963 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'robovac' is setting state directly. Entity None (<class 'custom_components.robovac.vacuum.RoboVacEntity'>) should implement the 'activity' property and return its state using the VacuumActivity enum at custom_components/robovac/vacuum.py, line 118: async_add_entities([entity]). This will stop working in Home Assistant 2026.1, please create a bug report at https://github.com/codefoodpixels/robovac/issues

It seems they will only be removed in version 2026.1 so there is still some time before this integration stops working.

FakeTruth avatar Mar 11 '25 21:03 FakeTruth

+1 I am seeing the same in my logs

silviudc avatar Mar 21 '25 08:03 silviudc

👋🏼 I've fixed this on my fork available here

damacus avatar Apr 12 '25 13:04 damacus

👋🏼 I've fixed this on my fork available here

much appreciated! can't wait to check out your fork

jesse-kaufman avatar Apr 12 '25 13:04 jesse-kaufman

I also have this warning in my logs.

Orange-GT3 avatar Jul 02 '25 05:07 Orange-GT3