More logging

This commit is contained in:
Martin Bauer 2019-12-02 20:40:30 +01:00
parent dd19d49d0d
commit a01222e001
1 changed files with 4 additions and 1 deletions

View File

@ -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