Remove melcloud from mypy ignore list (#74410)
This commit is contained in:
parent
ebc8fba5bf
commit
110d9232cd
4 changed files with 22 additions and 23 deletions
|
@ -142,7 +142,7 @@ class MelCloudDevice:
|
|||
)
|
||||
|
||||
|
||||
async def mel_devices_setup(hass, token) -> list[MelCloudDevice]:
|
||||
async def mel_devices_setup(hass, token) -> dict[str, list[MelCloudDevice]]:
|
||||
"""Query connected devices from MELCloud."""
|
||||
session = async_get_clientsession(hass)
|
||||
try:
|
||||
|
@ -156,7 +156,7 @@ async def mel_devices_setup(hass, token) -> list[MelCloudDevice]:
|
|||
except (asyncio.TimeoutError, ClientConnectionError) as ex:
|
||||
raise ConfigEntryNotReady() from ex
|
||||
|
||||
wrapped_devices = {}
|
||||
wrapped_devices: dict[str, list[MelCloudDevice]] = {}
|
||||
for device_type, devices in all_devices.items():
|
||||
wrapped_devices[device_type] = [MelCloudDevice(device) for device in devices]
|
||||
return wrapped_devices
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue