Logger integration & more log messages
This commit is contained in:
@@ -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:'):
|
||||
|
||||
Reference in New Issue
Block a user