Update docstrings (#7374)

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstring

* Update docstrings

* Update docstrings

* Fix lint issues

* Update docstrings

* Revert changes in dict
This commit is contained in:
Fabian Affolter 2017-05-02 18:18:47 +02:00 committed by Paulus Schoutsen
parent 0e08925259
commit a4f1f6e724
340 changed files with 1533 additions and 1708 deletions

View file

@ -60,8 +60,8 @@ class TikteckLight(Light):
self._rgb = [255, 255, 255]
self._state = False
self.is_valid = True
self._bulb = tikteck.tikteck(self._address, "Smart Light",
self._password)
self._bulb = tikteck.tikteck(
self._address, "Smart Light", self._password)
if self._bulb.connect() is False:
self.is_valid = False
_LOGGER.error(
@ -99,12 +99,12 @@ class TikteckLight(Light):
@property
def should_poll(self):
"""Don't poll."""
"""Return the polling state."""
return False
@property
def assumed_state(self):
"""We can't read the actual state, so assume it matches."""
"""Return the assumed state."""
return True
def set_state(self, red, green, blue, brightness):