diff --git a/custom_components/ssh/sensor.py b/custom_components/ssh/sensor.py index 477389c..4874091 100644 --- a/custom_components/ssh/sensor.py +++ b/custom_components/ssh/sensor.py @@ -108,7 +108,7 @@ def update(self): self._ssh.sendline(self._command) self._ssh.prompt() - value = self._ssh.before.decode("utf-8") + value = '\n'.join(self._ssh.before.decode("utf-8").splitlines()[1:]) if self._value_template is not None: self._state = self._value_template.render_with_possible_json_value(