From 690aca8ecfeacc43b88e17f017ba81a2b0d2a02e Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:52:21 +0100 Subject: [PATCH] Fix --- homeassistant/components/axis/hub/event_source.py | 2 +- homeassistant/components/image/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/axis/hub/event_source.py b/homeassistant/components/axis/hub/event_source.py index d295639d1a676..48718606b6bf9 100644 --- a/homeassistant/components/axis/hub/event_source.py +++ b/homeassistant/components/axis/hub/event_source.py @@ -76,7 +76,7 @@ def _mqtt_message(self, message: ReceiveMessage) -> None: if message.topic.endswith("event/connection"): return - event = mqtt_json_to_event(message.payload) + event = mqtt_json_to_event(message.payload) # type: ignore[arg-type] self.api.event.handler(event) @callback diff --git a/homeassistant/components/image/__init__.py b/homeassistant/components/image/__init__.py index dbb5962eabf5f..ea23512789455 100644 --- a/homeassistant/components/image/__init__.py +++ b/homeassistant/components/image/__init__.py @@ -348,7 +348,7 @@ async def _write_frame() -> bool: # While this results in additional bandwidth usage, # given the low frequency of image updates, it is acceptable. frame.extend(frame) - await response.write(frame) + await response.write(frame) # type: ignore[arg-type] return True event = asyncio.Event()