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 #38 from Thomas55555/2021.4.0
Browse files Browse the repository at this point in the history
use extra_state_attributes - this requires homeassistant 2021.4.0
  • Loading branch information
Thomas55555 authored Apr 4, 2021
2 parents 264993a + f51adac commit d595a70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ But the adavantage is, that Husqvarna won't close the offical API suddenly.

## Installation

Requires Home Assistant 0.113 or newer.
Requires Home Assistant 2021.4.0 or newer.

### Installation through HACS

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 @@ -14,4 +14,4 @@
"aioautomower==2021.3.5"
],
"version": "0.0.0"
}
}
6 changes: 3 additions & 3 deletions custom_components/husqvarna_automower/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
SUPPORT_STOP,
StateVacuumEntity,
)
from homeassistant.helpers import entity
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.update_coordinator import CoordinatorEntity, UpdateFailed

from .const import DOMAIN, ERRORCODES, ICON
Expand All @@ -43,7 +43,7 @@ async def async_setup_entry(hass, entry, async_add_devices):
)


class HusqvarnaEntity(entity.Entity):
class HusqvarnaEntity(Entity):
"""Defining the Husqvarna Entity."""

def __init__(self, coordinator):
Expand Down Expand Up @@ -164,7 +164,7 @@ def battery_level(self):
)

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the specific state attributes of this mower."""
self.mower_attributes = self.coordinator.data["data"][self.idx]["attributes"]
if (
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": "0.113.0",
"homeassistant": "2021.4.0",
"iot_class": ["Cloud Polling"],
"render_readme": true,
"zip_release": true,
Expand Down

0 comments on commit d595a70

Please sign in to comment.