Skip to content

Commit

Permalink
Philips Eyecar: Some misleading docstrings updated. (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored and rytilahti committed Mar 4, 2018
1 parent 761a9b3 commit 35c0355
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions miio/philips_eyecare.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def is_on(self) -> bool:

@property
def brightness(self) -> int:
"""Current brightness."""
"""Current brightness of the primary light."""
return self.data["bright"]

@property
Expand All @@ -51,7 +51,7 @@ def ambient_brightness(self) -> int:

@property
def eyecare(self) -> bool:
"""True if the eyecare light (first light source) is on."""
"""True if the eyecare mode is on."""
return self.data["eyecare"] == "on"

@property
Expand Down Expand Up @@ -113,15 +113,15 @@ def off(self):
return self.send("set_power", ["off"])

def eyecare_on(self):
"""Turn the eyecare light on."""
"""Turn the eyecare mode on."""
return self.send("set_eyecare", ["on"])

def eyecare_off(self):
"""Turn the eyecare light off."""
"""Turn the eyecare mode off."""
return self.send("set_eyecare", ["off"])

def set_brightness(self, level: int):
"""Set brightness level."""
"""Set brightness level of the primary light."""
if level < 1 or level > 100:
raise PhilipsEyecareException("Invalid brightness: %s" % level)

Expand Down

0 comments on commit 35c0355

Please sign in to comment.