1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Fix PEP257 issues

This commit is contained in:
Fabian Affolter
2016-03-07 22:08:21 +01:00
parent f6bc1a4575
commit 7e8e91ef3c
19 changed files with 234 additions and 274 deletions

View File

@@ -119,12 +119,12 @@ class MqttLight(Light):
@property
def brightness(self):
"""Brightness of this light between 0..255."""
"""Return the brightness of this light between 0..255."""
return self._brightness
@property
def rgb_color(self):
"""RGB color value."""
"""Return the RGB color value."""
return self._rgb
@property
@@ -134,17 +134,17 @@ class MqttLight(Light):
@property
def name(self):
"""Name of the device if any."""
"""Return the name of the device if any."""
return self._name
@property
def is_on(self):
"""True if device is on."""
"""Return true if device is on."""
return self._state
@property
def assumed_state(self):
"""Return True if we do optimistic updates."""
"""Return true if we do optimistic updates."""
return self._optimistic
def turn_on(self, **kwargs):