From ff70e744fa64da98449af5ddefc2df63abef2013 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Wed, 29 Jul 2026 16:41:07 +0200 Subject: [PATCH] Fix CI (#177557) --- homeassistant/components/todoist/calendar.py | 1 + homeassistant/components/todoist/services.py | 1 + tests/components/unifiprotect/test_event.py | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/todoist/calendar.py b/homeassistant/components/todoist/calendar.py index fa9ead2cef16..b5ce72c38194 100644 --- a/homeassistant/components/todoist/calendar.py +++ b/homeassistant/components/todoist/calendar.py @@ -1,4 +1,5 @@ """Support for Todoist task management (https://todoist.com).""" +# pylint: disable=home-assistant-use-runtime-data # Uses legacy hass.data[DOMAIN] pattern from datetime import date, datetime, timedelta import logging diff --git a/homeassistant/components/todoist/services.py b/homeassistant/components/todoist/services.py index 7f30ee71e295..46a8585311de 100644 --- a/homeassistant/components/todoist/services.py +++ b/homeassistant/components/todoist/services.py @@ -1,4 +1,5 @@ """Services for Todoist.""" +# pylint: disable=home-assistant-use-runtime-data # Uses legacy hass.data[DOMAIN] pattern from datetime import datetime import logging diff --git a/tests/components/unifiprotect/test_event.py b/tests/components/unifiprotect/test_event.py index 77959b589c85..7f97bd68927a 100644 --- a/tests/components/unifiprotect/test_event.py +++ b/tests/components/unifiprotect/test_event.py @@ -31,7 +31,7 @@ from homeassistant.components.unifiprotect.event import ( ) from homeassistant.const import ATTR_ATTRIBUTION, STATE_UNAVAILABLE, Platform from homeassistant.core import Event as HAEvent, HomeAssistant, callback -from homeassistant.helpers import entity_registry as er +from homeassistant.helpers.entity_registry import EntityRegistry from homeassistant.helpers.event import async_track_state_change_event from .utils import ( @@ -1955,12 +1955,12 @@ async def test_sound_detection_absent_without_audio_types( hass: HomeAssistant, ufp: MockUFPFixture, doorbell: Camera, + entity_registry: EntityRegistry, ) -> None: """Object smart-detect without audio support creates no sound-detection entity.""" doorbell.feature_flags.smart_detect_audio_types = [] await init_entry(hass, ufp, [doorbell]) - entity_registry = er.async_get(hass) smart = next(d for d in EVENT_DESCRIPTIONS if d.key == "smart_detection") sound = next(d for d in EVENT_DESCRIPTIONS if d.key == "sound_detection") _, smart_id = await ids_from_device_description(