Updated to the Vacuum entity integration
· One min read
The Vacuum entity has seen some recent changes:
- The
VacuumEntity
base class was superseded byStateVacuumEntity
by PR 15573 which was merged in August 2018, and has now been scheduled for removal in Home Assistant Core 2024.2.0. All core integrations are already updated, but custom component integration authors need to update their integrations. PR 95920 is a recent example of migrating fromVacuumEntity
toStateVacuumEntity
. - Services supported by
VacuumEntity
andStateVacuumEntity
differ, but the documentation was a bit ambiguous causing some integrations to implement services from the wrong base class. This is now prevented by PR 95833. All core integrations are already updated, but custom component integration authors need to update their integrations. - The
battery_icon
+battery_level
state attributes have been deprecated. Integrations can instead report battery status by adding asensor
with device classbattery
to the same device as thevacuum
entity, see architecture discussion 938 for details. - The
map
state attribute has been deprecated. Integrations can instead provide a map image by adding animage
entity to the same device as thevacuum
entity, see architecture discussion 939 for details.
For more details, refer to the vacuum
documentation.