Skip to content

Commit

Permalink
Merge pull request #82 from lymanepp/imperial-temperature-fix
Browse files Browse the repository at this point in the history
Make imperial temperatures compatible with HA 2022.4 changes
  • Loading branch information
MartyTremblay authored Jun 10, 2022
2 parents e9175d9 + 9a9e959 commit 9c2331e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/airthings_wave/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def name(self):
return self._name

@property
def state(self):
def native_value(self):
"""Return the state of the device."""
return self._state

Expand All @@ -280,7 +280,7 @@ def device_class(self):
return self._sensor_specifics.device_class

@property
def unit_of_measurement(self):
def native_unit_of_measurement(self):
"""Return the unit the value is expressed in."""
return self._sensor_specifics.unit

Expand Down

0 comments on commit 9c2331e

Please sign in to comment.