Add request made by rest_command to debug log (#139266)

This commit is contained in:
Jan-Philipp Benecke 2025-02-25 16:27:18 +01:00 committed by GitHub
parent 72502c1a15
commit f607b95c00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,6 +146,14 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
if content_type:
headers[hdrs.CONTENT_TYPE] = content_type
_LOGGER.debug(
"Calling %s %s with headers: %s and payload: %s",
method,
request_url,
headers,
payload,
)
try:
async with getattr(websession, method)(
request_url,