Adjust button type hints in components (#74132)

This commit is contained in:
epenet 2022-06-28 17:19:03 +02:00 committed by GitHub
parent dc039f5218
commit b51ad16db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 17 deletions

View file

@ -2,7 +2,6 @@
from __future__ import annotations
from contextlib import suppress
from typing import Any
from aioesphomeapi import ButtonInfo, EntityState
@ -46,6 +45,6 @@ class EsphomeButton(EsphomeEntity[ButtonInfo, EntityState], ButtonEntity):
# never gets a state update.
self._on_state_update()
async def async_press(self, **kwargs: Any) -> None:
async def async_press(self) -> None:
"""Press the button."""
await self._client.button_command(self._static_info.key)