From 9400dac9053e4740501334cbaab3f84d4eabe89c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:09:34 +0100 Subject: [PATCH] Improve type hints in melcloud (#87264) --- homeassistant/components/melcloud/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/melcloud/__init__.py b/homeassistant/components/melcloud/__init__.py index 5eefb3db487..eea169c3591 100644 --- a/homeassistant/components/melcloud/__init__.py +++ b/homeassistant/components/melcloud/__init__.py @@ -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: