From d17aa103b4ea2dc67f4c766d14c8cabedc2a794e Mon Sep 17 00:00:00 2001 From: Bart274 Date: Thu, 14 Jan 2016 10:13:57 +0100 Subject: [PATCH] Update command_sensor.py --- homeassistant/components/binary_sensor/command_sensor.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/binary_sensor/command_sensor.py b/homeassistant/components/binary_sensor/command_sensor.py index dd365fec468..5e59818ee22 100644 --- a/homeassistant/components/binary_sensor/command_sensor.py +++ b/homeassistant/components/binary_sensor/command_sensor.py @@ -1,7 +1,8 @@ """ homeassistant.components.binary_sensor.command_sensor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Allows to configure custom shell commands to turn a value into a logical value for a binary sensor. +Allows to configure custom shell commands to turn a value +into a logical value for a binary sensor. """ import logging import subprocess @@ -43,8 +44,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None): # pylint: disable=too-many-arguments class CommandBinarySensor(BinarySensorDevice): - """ Represents a binary sensor that is returning a value of a shell commands. """ - def __init__(self, hass, data, name, payload_on, payload_off, value_template): + """ Represents a binary sensor that is returning + a value of a shell commands. """ + def __init__(self, hass, data, name, payload_on, + payload_off, value_template): self._hass = hass self.data = data self._name = name