Move temperature conversions to sensor base class (3/8) (#54469)

* Move temperature conversions to entity base class (3/8)

* Fix FritzBox sensor

* Fix tests
This commit is contained in:
Erik Montnemery 2021-08-12 14:23:56 +02:00 committed by GitHub
parent 103e21c278
commit 6de6a5dc14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 350 additions and 324 deletions

View file

@ -108,7 +108,7 @@ class GitHubSensor(SensorEntity):
return self._unique_id
@property
def state(self):
def native_value(self):
"""Return the state of the sensor."""
return self._state