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

Commit

Permalink
Merge pull request #197 from Thomas55555/revert-195-use-VacuumEntityF…
Browse files Browse the repository at this point in the history
…eature

Revert "use VacuumEntityFeature"
  • Loading branch information
Thomas55555 authored Apr 8, 2022
2 parents 978a5ea + 89b8746 commit c91d611
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 19 additions & 9 deletions custom_components/husqvarna_automower/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@
STATE_IDLE,
STATE_PAUSED,
STATE_RETURNING,
SUPPORT_BATTERY,
SUPPORT_MAP,
SUPPORT_PAUSE,
SUPPORT_RETURN_HOME,
SUPPORT_SEND_COMMAND,
SUPPORT_START,
SUPPORT_STATE,
SUPPORT_STATUS,
SUPPORT_STOP,
StateVacuumEntity,
VacuumEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
Expand All @@ -28,14 +36,16 @@
from .entity import AutomowerEntity

SUPPORT_STATE_SERVICES = (
VacuumEntityFeature.STATE
| VacuumEntityFeature.BATTERY
| VacuumEntityFeature.PAUSE
| VacuumEntityFeature.RETURN_HOME
| VacuumEntityFeature.SEND_COMMAND
| VacuumEntityFeature.START
| VacuumEntityFeature.STATUS
| VacuumEntityFeature.STOP
SUPPORT_STATE
| SUPPORT_BATTERY
| SUPPORT_MAP
| SUPPORT_PAUSE
| SUPPORT_RETURN_HOME
| SUPPORT_SEND_COMMAND
| SUPPORT_START
| SUPPORT_STATE
| SUPPORT_STATUS
| SUPPORT_STOP
)

_LOGGER = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Husqvarna Automower",
"domains": ["vacuum"],
"homeassistant": "2022.4.0",
"homeassistant": "2021.5.0b0",
"iot_class": ["Cloud Polling"],
"render_readme": true,
"zip_release": true,
Expand Down

0 comments on commit c91d611

Please sign in to comment.