Skip to content

Commit

Permalink
Merge pull request #236 from smarthomeNG/revert-235-master
Browse files Browse the repository at this point in the history
Revert "Helios plugin error fix for 1.6 and some additional changes"
  • Loading branch information
msinn authored May 11, 2019
2 parents dbb4661 + 7842068 commit ff190e2
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 308 deletions.
6 changes: 3 additions & 3 deletions helios/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _waitForSilence(self):
gotSlot = False
backupTimeout = self._port.timeout
end = time.time() + 3
self._port.timeout = 0.007 # Changed from 0.07 --> 0.007 (7ms) according to Standard
self._port.timeout = 0.07
while end > time.time():
chars = self._port.read(1)
# nothing received so we got a slot of silence...hopefully
Expand Down Expand Up @@ -409,8 +409,8 @@ def readValue(self,varname):
.format(varname, '0x%0*X' % (2, CONST_MAP_VARIABLES_TO_ID[varname]["varid"]),
'0x%0*X' % (2,raw_value), "{0:08b}".format(raw_value), raw_value, value)
)
else: # logging as info only, so we stop spamming log file as some noise on the bus seems to be normal
self.logger.info("Helios: No valid value for '{0}' from ventilation system received."
else: # logging in debug only, so we stop spamming log file (noise on the bus seems to be normal)
self.logger.debug("Helios: No valid value for '{0}' from ventilation system received."
.format(varname)
)
else:
Expand Down
Loading

0 comments on commit ff190e2

Please sign in to comment.