Skip to content

Commit

Permalink
Some updates from @KrzysztofHajdamowicz fork
Browse files Browse the repository at this point in the history
  • Loading branch information
tykarol committed Mar 17, 2022
1 parent 3d376bc commit 2de4846
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions custom_components/viomi_vacuum_v8/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"domain": "viomi_vacuum_v8",
"name": "Viomi Vacuum V8",
"version": "1.3.1",
"version": "2022.3.1",
"documentation": "https://github.com/tykarol/home-assistant-viomi-vacuum-v8",
"requirements": [
"construct>=2.10.59",
"python-miio>=0.5.8"
"python-miio>=0.5.11"
],
"dependencies": [],
"codeowners": ["@nqkdev", "@KrzysztofHajdamowicz", "@tykarol"],
Expand Down
6 changes: 3 additions & 3 deletions custom_components/viomi_vacuum_v8/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from functools import partial
import logging

from miio import DeviceException, Device, Vacuum # pylint: disable=import-error
from miio import DeviceException, ViomiVacuum # pylint: disable=import-error
import voluptuous as vol

from homeassistant.components.vacuum import (
Expand Down Expand Up @@ -208,7 +208,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
# Create handler
_LOGGER.info("Initializing with host %s (token %s...)", host, token[:5])

vacuum = Vacuum(host, token)
vacuum = ViomiVacuum(host, token)
device = ViomiVacuumEntity(name, vacuum)
hass.data[DATA_KEY][host] = device

Expand Down Expand Up @@ -298,7 +298,7 @@ def fan_speed_list(self):
return list(sorted(FAN_SPEEDS.keys(), key=lambda s: FAN_SPEEDS[s]))

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the specific state attributes of this device."""
attrs = {}
if self.vacuum_state is not None:
Expand Down

0 comments on commit 2de4846

Please sign in to comment.