mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Fix ruff-format on energy sensor (#114261)
This commit is contained in:
parent
8955ef7fc6
commit
2649dfaa11
@ -254,9 +254,9 @@ class EnergyCostSensor(SensorEntity):
|
|||||||
self._last_energy_sensor_state: State | None = None
|
self._last_energy_sensor_state: State | None = None
|
||||||
# add_finished is set when either of async_added_to_hass or add_to_platform_abort
|
# add_finished is set when either of async_added_to_hass or add_to_platform_abort
|
||||||
# is called
|
# is called
|
||||||
self.add_finished: asyncio.Future[
|
self.add_finished: asyncio.Future[None] = (
|
||||||
None
|
asyncio.get_running_loop().create_future()
|
||||||
] = asyncio.get_running_loop().create_future()
|
)
|
||||||
|
|
||||||
def _reset(self, energy_state: State) -> None:
|
def _reset(self, energy_state: State) -> None:
|
||||||
"""Reset the cost sensor."""
|
"""Reset the cost sensor."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user