Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some misleading docstrings updated #245

Merged
merged 1 commit into from
Mar 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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