From 20707b94b55b162bfc5dd282efa48e1a29a6f8a7 Mon Sep 17 00:00:00 2001 From: Steve Sinchak Date: Sat, 8 Feb 2025 15:12:51 -0600 Subject: [PATCH] Improve emulated_hue logging to identify bad devices (#137919) * Improve emulated_hue logging to identify bad devices * Updated per @bdraco request --- homeassistant/components/emulated_hue/hue_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/emulated_hue/hue_api.py b/homeassistant/components/emulated_hue/hue_api.py index 464d2bcb7e7..9ccb8a64367 100644 --- a/homeassistant/components/emulated_hue/hue_api.py +++ b/homeassistant/components/emulated_hue/hue_api.py @@ -322,8 +322,10 @@ class HueOneLightStateView(HomeAssistantView): if hass_entity_id is None: _LOGGER.error( - "Unknown entity number: %s not found in emulated_hue_ids.json", + "Unknown entity number: %s not found in emulated_hue_ids.json, " + "state request from %s", entity_id, + request.remote, ) return self.json_message("Entity not found", HTTPStatus.NOT_FOUND)