Improve type hints in melcloud (#87264)

pull/87324/head
epenet 2023-02-03 17:09:34 +01:00 committed by GitHub
parent e40df09098
commit 9400dac905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ class MelCloudDevice:
return self.device.daily_energy_consumed
async def mel_devices_setup(hass, token) -> dict[str, list[MelCloudDevice]]:
async def mel_devices_setup(
hass: HomeAssistant, token: str
) -> dict[str, list[MelCloudDevice]]:
"""Query connected devices from MELCloud."""
session = async_get_clientsession(hass)
try: