mirror of
https://github.com/home-assistant/core.git
synced 2025-11-20 08:20:12 +00:00
Update docstrings (#7374)
* Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstring * Update docstrings * Update docstrings * Fix lint issues * Update docstrings * Revert changes in dict
This commit is contained in:
committed by
Paulus Schoutsen
parent
0e08925259
commit
a4f1f6e724
@@ -80,7 +80,7 @@ class StatisticsSensor(Entity):
|
||||
@callback
|
||||
# pylint: disable=invalid-name
|
||||
def async_stats_sensor_state_listener(entity, old_state, new_state):
|
||||
"""Called when the sensor changes state."""
|
||||
"""Handle the sensor state changes."""
|
||||
self._unit_of_measurement = new_state.attributes.get(
|
||||
ATTR_UNIT_OF_MEASUREMENT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user