Skip to content

Commit

Permalink
change to native_value
Browse files Browse the repository at this point in the history
  • Loading branch information
garbled1 committed Oct 16, 2021
1 parent be8e32a commit 53ed6b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/ecowitt/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, hass, entry, key, name, dc, uom, icon, sc):
self._sc = sc

@property
def state(self):
def native_value(self):
"""Return the state of the sensor."""
if self._key in self._ws.last_values:
# The lightning time is reported in UTC, hooray.
Expand All @@ -65,7 +65,7 @@ def state(self):
return STATE_UNKNOWN

@property
def unit_of_measurement(self):
def native_unit_of_measurement(self):
"""Return the unit of measurement."""
return self._uom

Expand Down

0 comments on commit 53ed6b8

Please sign in to comment.