Skip to content

Deprecated constants which will be removed in HA Core 2026.1 #121

@FakeTruth

Description

@FakeTruth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions