mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +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
|
||||
# add_finished is set when either of async_added_to_hass or add_to_platform_abort
|
||||
# is called
|
||||
self.add_finished: asyncio.Future[
|
||||
None
|
||||
] = asyncio.get_running_loop().create_future()
|
||||
self.add_finished: asyncio.Future[None] = (
|
||||
asyncio.get_running_loop().create_future()
|
||||
)
|
||||
|
||||
def _reset(self, energy_state: State) -> None:
|
||||
"""Reset the cost sensor."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user