Improve entity type hints [d] (#77031)

This commit is contained in:
epenet 2022-08-19 16:10:45 +02:00 committed by GitHub
parent 2d197fd59e
commit bf7239c25d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 141 additions and 119 deletions

View file

@ -133,7 +133,7 @@ class DovadoSensor(SensorEntity):
return round(float(state) / 1e6, 1)
return state
def update(self):
def update(self) -> None:
"""Update sensor values."""
self._data.update()
self._attr_native_value = self._compute_state()