Add missing hass type hint in component tests (i) (#124216)

This commit is contained in:
epenet 2024-08-19 12:40:17 +02:00 committed by GitHub
parent 057f31132b
commit f0af33bd2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 63 additions and 33 deletions

View file

@ -79,7 +79,9 @@ def storage_setup(hass: HomeAssistant, hass_storage: dict[str, Any]):
return _storage
async def async_set_date_and_time(hass, entity_id, dt_value):
async def async_set_date_and_time(
hass: HomeAssistant, entity_id: str, dt_value: datetime.datetime
) -> None:
"""Set date and / or time of input_datetime."""
await hass.services.async_call(
DOMAIN,
@ -93,7 +95,9 @@ async def async_set_date_and_time(hass, entity_id, dt_value):
)
async def async_set_datetime(hass, entity_id, dt_value):
async def async_set_datetime(
hass: HomeAssistant, entity_id: str, dt_value: datetime.datetime
) -> None:
"""Set date and / or time of input_datetime."""
await hass.services.async_call(
DOMAIN,
@ -103,7 +107,9 @@ async def async_set_datetime(hass, entity_id, dt_value):
)
async def async_set_timestamp(hass, entity_id, timestamp):
async def async_set_timestamp(
hass: HomeAssistant, entity_id: str, timestamp: float
) -> None:
"""Set date and / or time of input_datetime."""
await hass.services.async_call(
DOMAIN,