Less fhem output

This commit is contained in:
Martin Bauer
2020-04-19 15:59:51 +02:00
parent 685a2199fc
commit 98aa37083b
4 changed files with 55 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class FhemConnection(ReconnectingClient):
if line.startswith(self._cul_device_name + " "): # Status update message
_, device_name, command = line.split(" ", 2)
for device in self._devices[device_name]:
_LOGGER.debug("FHEM line received (device): " + device_name + ": " + line)
#_LOGGER.debug("FHEM line received (device): " + device_name + ": " + line)
await device.line_received(command.strip())
else: # potential response to displayattr
split_line = line.split(" ", 1)
@@ -69,7 +69,7 @@ class FhemConnection(ReconnectingClient):
if self._writer:
line += '\n'
self._writer.write(line.encode())
_LOGGER.debug(f"FHEM write line {line}")
#_LOGGER.debug(f"FHEM write line {line}")
else:
_LOGGER.debug(f"FHEM Failed to write line {line}")