From 8719aa76ca9cc660b6915c02b5585e566ff0d1e9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 3 Aug 2023 23:46:19 -1000 Subject: [PATCH] Avoid calling the http access logging when logging is disabled in emulated_hue (#97750) --- homeassistant/components/emulated_hue/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/emulated_hue/__init__.py b/homeassistant/components/emulated_hue/__init__.py index 1ba93da716c..a98d2c08a48 100644 --- a/homeassistant/components/emulated_hue/__init__.py +++ b/homeassistant/components/emulated_hue/__init__.py @@ -6,6 +6,7 @@ import logging from aiohttp import web import voluptuous as vol +from homeassistant.components.http import HomeAssistantAccessLogger from homeassistant.components.network import async_get_source_ip from homeassistant.const import ( CONF_ENTITIES, @@ -100,7 +101,7 @@ async def start_emulated_hue_bridge( config.advertise_port or config.listen_port, ) - runner = web.AppRunner(app) + runner = web.AppRunner(app, access_log_class=HomeAssistantAccessLogger) await runner.setup() site = web.TCPSite(runner, config.host_ip_addr, config.listen_port)