Fix logging of unregistered route to include path

ecowitt_support
SchiZzA 2026-01-18 19:35:51 +01:00
parent 08b812e558
commit a20369bab3
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Routes:
"""Dispatch.""" """Dispatch."""
info = self.routes.get(request.path) info = self.routes.get(request.path)
if not info: if not info:
_LOGGER.debug("Route %s is not registered!") _LOGGER.debug("Route %s is not registered!", request.path)
return await unregistred(request) return await unregistred(request)
handler = info.handler if info.enabled else info.fallback handler = info.handler if info.enabled else info.fallback
return await handler(request) return await handler(request)