Logger integration & more log messages

This commit is contained in:
Martin Bauer
2019-12-02 20:18:14 +01:00
parent 4722abce31
commit 0391f03244
3 changed files with 8 additions and 3 deletions

View File

@@ -66,6 +66,7 @@ class FhemSwitch(SwitchDevice):
async def line_received(self, line):
line = line.strip()
_LOGGER.debug(f"Switch received line {line}")
if not self._available:
_LOGGER.warning(f"Line for unavailable device {self.name}: {line}")
if line.startswith('level:'):