fix too long line

This commit is contained in:
Stefan Lehmann
2017-10-25 20:04:46 +02:00
parent 14c0552e89
commit 94bc9b3ca8

View File

@@ -98,8 +98,9 @@ class AdsBinarySensor(BinarySensorDevice):
def poll(self, now): def poll(self, now):
try: try:
self._state = self._ads_hub.read_by_name(self.adsvar, self._state = self._ads_hub.read_by_name(
self._ads_hub.PLCTYPE_BOOL) self.adsvar, self._ads_hub.PLCTYPE_BOOL
)
_LOGGER.debug('Polled value for bool variable {0}: {1}' _LOGGER.debug('Polled value for bool variable {0}: {1}'
.format(self.adsvar, self._state)) .format(self.adsvar, self._state))
except self._ads_hub.ADSError as e: except self._ads_hub.ADSError as e: