diff --git a/homeassistant/components/zha/core/gateway.py b/homeassistant/components/zha/core/gateway.py index 5261396c794..17adc5fc848 100644 --- a/homeassistant/components/zha/core/gateway.py +++ b/homeassistant/components/zha/core/gateway.py @@ -754,7 +754,7 @@ class LogRelayHandler(logging.Handler): "|".join([re.escape(x) for x in (hass_path, config_dir)]) ) ) - entry = LogEntry(record, stack, _figure_out_source(record, stack, paths_re)) + entry = LogEntry(record, _figure_out_source(record, stack, paths_re)) async_dispatcher_send( self.hass, ZHA_GW_MSG,