Address comment in integration Riemann sum PR #55875 (#55895)

* https://github.com/home-assistant/core/pull/55875\#discussion_r703334504

* missing test update
This commit is contained in:
Diogo Gomes 2021-09-07 18:40:20 +01:00 committed by GitHub
parent 0684f8bddf
commit d705b35ea1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ class IntegrationSensor(RestoreEntity, SensorEntity):
"""Initialize the integration sensor."""
self._sensor_source_id = source_entity
self._round_digits = round_digits
self._state = STATE_UNAVAILABLE
self._state = None
self._method = integration_method
self._name = name if name is not None else f"{source_entity} integral"