Skip to content

Commit

Permalink
Update vacuum.py to use "StateVacuumEntity"
Browse files Browse the repository at this point in the history
The custom integration eufy_vacuum is extending the deprecated base class VacuumEntity instead of StateVacuumEntity.
Please report it to the author of the eufy_vacuum custom integration.

Works here and seems to address my issue: mitchellrj#38
  • Loading branch information
3ative authored Aug 2, 2023
1 parent e08db60 commit 54bbfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eufy_robovac/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
SUPPORT_BATTERY, SUPPORT_CLEAN_SPOT, SUPPORT_FAN_SPEED, SUPPORT_LOCATE,
SUPPORT_PAUSE, SUPPORT_RETURN_HOME, SUPPORT_STATUS, SUPPORT_START,
SUPPORT_TURN_ON, SUPPORT_TURN_OFF,
VacuumEntity)
StateVacuumEntity)


from . import robovac
Expand Down Expand Up @@ -50,7 +50,7 @@ def setup_platform(hass, config, add_entities, device_config=None):
add_entities([EufyVacuum(device_config)], True)


class EufyVacuum(VacuumEntity):
class EufyVacuum(StateVacuumEntity):
"""Representation of a Eufy vacuum cleaner."""

def __init__(self, device_config):
Expand Down

1 comment on commit 54bbfbc

@3ative
Copy link
Owner Author

@3ative 3ative commented on 54bbfbc Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This change breaks Vacuum "Status" in Home Assistant - Everything else works as expected. I believe a Home Assistant update is required too.

Please sign in to comment.