mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Log device IP sending local msg (#67987)
This commit is contained in:
parent
8948bada58
commit
49b642a6ba
@ -331,7 +331,12 @@ class AbstractConfig(ABC):
|
||||
payload = await request.json()
|
||||
|
||||
if _LOGGER.isEnabledFor(logging.DEBUG):
|
||||
_LOGGER.debug("Received local message:\n%s\n", pprint.pformat(payload))
|
||||
_LOGGER.debug(
|
||||
"Received local message from %s (JS %s):\n%s\n",
|
||||
request.remote,
|
||||
request.headers.get("HA-Cloud-Version", "unknown"),
|
||||
pprint.pformat(payload),
|
||||
)
|
||||
|
||||
if not self.enabled:
|
||||
return json_response(smart_home.turned_off_response(payload))
|
||||
|
Loading…
x
Reference in New Issue
Block a user