Spelling fixes (#12041)

* Spelling fixes

*Lots* of them.

* Spelling breaking changes

* Fix lint errors
This commit is contained in:
Otto Winter authored and Fabian Affolter committed 2018-01-29 23:37:19 +01:00
1 parent 38fd9b65bf
commit 8dcfd35b8b
138 files changed
+285 -286

No files matched your search

@@ -103,13 +103,13 @@ class AcerSwitch(SwitchDevice):
# need to wait for timeout
ret = self.ser.read_until(size=20).decode('utf-8')
except serial.SerialException:
_LOGGER.error('Problem comunicating with %s', self._serial_port)
_LOGGER.error('Problem communicating with %s', self._serial_port)
self.ser.close()
return ret
def _write_read_format(self, msg):
"""Write msg, obtain awnser and format output."""
# awnsers are formatted as ***\rawnser\r***
"""Write msg, obtain answer and format output."""
# answers are formatted as ***\answer\r***
awns = self._write_read(msg)
match = re.search(r'\r(.+)\r', awns)
if match: