Improve emulated_hue logging to identify bad devices (#137919)

* Improve emulated_hue logging to identify bad devices

* Updated per @bdraco request
pull/137992/head
Steve Sinchak 2025-02-08 15:12:51 -06:00 committed by GitHub
parent 361933091c
commit 20707b94b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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)