Skip to content

Commit

Permalink
fix: use StateVacuumEntity instead of VacuumEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
deblockt authored and Thomas Deblock committed Sep 23, 2023
1 parent af9997d commit 42a2e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/proscenic/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
STATE_IDLE,
STATE_PAUSED,
STATE_RETURNING,
VacuumEntity,
StateVacuumEntity,
PLATFORM_SCHEMA
)
from homeassistant.const import (
Expand Down Expand Up @@ -102,7 +102,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
async_add_entities(vacuums, update_before_add = False)


class ProscenicVacuum(VacuumEntity):
class ProscenicVacuum(StateVacuumEntity):
"""790T Vacuums such as Deebot."""

def __init__(self, device, name):
Expand Down

0 comments on commit 42a2e70

Please sign in to comment.