Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
use aioautomower instead of husqvarna_automower
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas55555 committed Mar 14, 2021
1 parent 2f66294 commit 645230d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ logger:
custom_components.husqvarna_automower: debug
custom_components.husqvarna_automower.vacuum: debug
custom_components.husqvarna_automower.config_flow: debug
husqvarna_automower: debug
aioautomower: debug
```

After a restart detailed log entries will appear in `/config/home-assistant.log`.
3 changes: 1 addition & 2 deletions custom_components/husqvarna_automower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
import time
from datetime import timedelta

from aioautomower import GetAccessToken, GetMowerData, RefreshAccessToken
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import Config, HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed

from husqvarna_automower import GetAccessToken, GetMowerData, RefreshAccessToken

from .const import (
CONF_API_KEY,
CONF_PASSWORD,
Expand Down
3 changes: 1 addition & 2 deletions custom_components/husqvarna_automower/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
from collections import OrderedDict

import voluptuous as vol
from aioautomower import GetAccessToken, GetMowerData
from homeassistant import config_entries
from homeassistant.core import callback

from husqvarna_automower import GetAccessToken, GetMowerData

from .const import CONF_API_KEY, CONF_PASSWORD, CONF_USERNAME, DOMAIN, HUSQVARNA_URL

CONF_ID = "unique_id"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/husqvarna_automower/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": [],
"config_flow": true,
"codeowners": ["@Thomas55555"],
"requirements": ["husqvarna-automower==2021.3.2"],
"requirements": ["aioautomower==2021.3.4"],
"version": "2021.3.2"
}
2 changes: 1 addition & 1 deletion custom_components/husqvarna_automower/vacuum.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Creates a vacuum entity for the mower"""
import time

from aioautomower import Return
from homeassistant.components.vacuum import (
STATE_CLEANING,
STATE_DOCKED,
Expand All @@ -22,7 +23,6 @@
from homeassistant.helpers import entity
from homeassistant.helpers.update_coordinator import CoordinatorEntity, UpdateFailed

from husqvarna_automower import Return
from .const import DOMAIN, ERRORCODES, ICON

SUPPORT_STATE_SERVICES = (
Expand Down

0 comments on commit 645230d

Please sign in to comment.