From a01222e001baa219be18f2ca287f846c3260d437 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Mon, 2 Dec 2019 20:40:30 +0100 Subject: [PATCH] More logging --- custom_components/fhem/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/fhem/__init__.py b/custom_components/fhem/__init__.py index 4d8a7c4..4aa8eb4 100644 --- a/custom_components/fhem/__init__.py +++ b/custom_components/fhem/__init__.py @@ -69,7 +69,10 @@ class FhemConnection(ReconnectingClient): if self._writer: line += '\n' self._writer.write(line.encode()) - + _LOGGER.debug(f"FHEM write line {line}") + else: + _LOGGER.debug(f"FHEM Failed to write line {line}") + def fhem_set(self, id, *arguments): """ Send command to FHEM using this device