Skip to content

Commit

Permalink
add debug for call service
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Nov 17, 2023
1 parent 02a45c3 commit 459af32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appdaemon/plugins/hass/hassplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,11 @@ async def call_plugin_service(self, namespace, domain, service, data):
result = await r.json()
else:
self.logger.warning(
"Error calling Home Assistant service %s/%s/%s",
"Error calling Home Assistant service %s/%s/%s (data=%s)",
namespace,
domain,
service,
data,
)
txt = await r.text()
self.logger.warning("Code: %s, error: %s", r.status, txt)
Expand Down

0 comments on commit 459af32

Please sign in to comment.