From 332a3fad3c6948f7157d63c1f869f12b2ec65b5a Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 24 Sep 2025 13:09:32 +0200 Subject: [PATCH] Fix mypy errors (#152879) --- homeassistant/components/acaia/coordinator.py | 4 +--- homeassistant/components/homekit_controller/utils.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/acaia/coordinator.py b/homeassistant/components/acaia/coordinator.py index 629e61c395c..b42cbccaee5 100644 --- a/homeassistant/components/acaia/coordinator.py +++ b/homeassistant/components/acaia/coordinator.py @@ -4,11 +4,9 @@ from __future__ import annotations from datetime import timedelta import logging -from typing import cast from aioacaia.acaiascale import AcaiaScale from aioacaia.exceptions import AcaiaDeviceNotFound, AcaiaError -from bleak import BleakScanner from homeassistant.components.bluetooth import async_get_scanner from homeassistant.config_entries import ConfigEntry @@ -45,7 +43,7 @@ class AcaiaCoordinator(DataUpdateCoordinator[None]): name=entry.title, is_new_style_scale=entry.data[CONF_IS_NEW_STYLE_SCALE], notify_callback=self.async_update_listeners, - scanner=cast(BleakScanner, async_get_scanner(hass)), + scanner=async_get_scanner(hass), ) @property diff --git a/homeassistant/components/homekit_controller/utils.py b/homeassistant/components/homekit_controller/utils.py index ac436ce27a4..9d04576ec28 100644 --- a/homeassistant/components/homekit_controller/utils.py +++ b/homeassistant/components/homekit_controller/utils.py @@ -63,7 +63,7 @@ async def async_get_controller(hass: HomeAssistant) -> Controller: controller = Controller( async_zeroconf_instance=async_zeroconf_instance, - bleak_scanner_instance=bleak_scanner_instance, # type: ignore[arg-type] + bleak_scanner_instance=bleak_scanner_instance, char_cache=char_cache, )