From e14d8d12c21dd658e1b7b910696f0dc38fff650c Mon Sep 17 00:00:00 2001 From: Sverre Hamre Date: Mon, 13 Dec 2021 21:07:18 +0100 Subject: [PATCH] Fix deprecated function, rename to new signature. Update version. --- custom_components/airthings_wave/manifest.json | 2 +- custom_components/airthings_wave/sensor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/airthings_wave/manifest.json b/custom_components/airthings_wave/manifest.json index 8b4e1e0..b4fd173 100644 --- a/custom_components/airthings_wave/manifest.json +++ b/custom_components/airthings_wave/manifest.json @@ -1,7 +1,7 @@ { "domain": "airthings_wave", "name": "Airthings Wave", - "version": "3.0.4", + "version": "3.0.5", "documentation": "https://github.com/custom-components/sensor.airthings_wave/", "issue_tracker": "https://github.com/custom-components/sensor.airthings_wave/issues", "dependencies": [], diff --git a/custom_components/airthings_wave/sensor.py b/custom_components/airthings_wave/sensor.py index 9a96c7a..a35ec95 100644 --- a/custom_components/airthings_wave/sensor.py +++ b/custom_components/airthings_wave/sensor.py @@ -260,7 +260,7 @@ def unique_id(self): return self._name @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return the state attributes of the sensor.""" attributes = self._sensor_specifics.get_extra_attributes(self._state) try: