Skip to content

Commit 9c2331e

Browse files
Merge pull request #82 from lymanepp/imperial-temperature-fix
Make imperial temperatures compatible with HA 2022.4 changes
2 parents e9175d9 + 9a9e959 commit 9c2331e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/airthings_wave/sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def name(self):
265265
return self._name
266266

267267
@property
268-
def state(self):
268+
def native_value(self):
269269
"""Return the state of the device."""
270270
return self._state
271271

@@ -280,7 +280,7 @@ def device_class(self):
280280
return self._sensor_specifics.device_class
281281

282282
@property
283-
def unit_of_measurement(self):
283+
def native_unit_of_measurement(self):
284284
"""Return the unit the value is expressed in."""
285285
return self._sensor_specifics.unit
286286

0 commit comments

Comments
 (0)