Skip to content

Commit

Permalink
Fix warning with HA 0.110
Browse files Browse the repository at this point in the history
VacuumDevice replaced by VacuumEntity
  • Loading branch information
ericpignet committed May 20, 2020
1 parent 249a691 commit 13d21d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/lg_hombot/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import async_timeout

from homeassistant.components.vacuum import (
VacuumDevice, PLATFORM_SCHEMA, SUPPORT_BATTERY, SUPPORT_FAN_SPEED,
VacuumEntity, PLATFORM_SCHEMA, SUPPORT_BATTERY, SUPPORT_FAN_SPEED,
SUPPORT_PAUSE, SUPPORT_RETURN_HOME, SUPPORT_SEND_COMMAND, SUPPORT_STATUS,
SUPPORT_STOP, SUPPORT_TURN_OFF, SUPPORT_TURN_ON)
from homeassistant.const import (
Expand Down Expand Up @@ -73,7 +73,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
async_add_devices([hombot_vac], update_before_add=True)


class HombotVacuum(VacuumDevice):
class HombotVacuum(VacuumEntity):
"""Representation of a Hombot vacuum cleaner robot."""

def __init__(self, name, host, port):
Expand Down

0 comments on commit 13d21d3

Please sign in to comment.