Skip to content

Commit

Permalink
FIX: Fixed a definition of Has Volume capability (#115)
Browse files Browse the repository at this point in the history
More info in GitHub
  • Loading branch information
s-kostyuk committed May 20, 2018
1 parent fbf6f23 commit 88ee86c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dpl/things/capabilities/has_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
This module contains definition of Has Volume capability
"""

from dpl.utils.color_rgb import ColorRGB


class HasVolume(object):
"""
Expand All @@ -18,10 +16,11 @@ class HasVolume(object):
_commands = ('set_volume', )

@property
def volume(self) -> ColorRGB:
def volume(self) -> int:
"""
Returns the current color for this Thing in RGB format
Returns the value of volume (loudness) for this Thing in integers
from 0 to 100 including.
:return: the current color for this Thing in RGB format
:return: the current volume (loudness) for this Thing
"""
raise NotImplementedError()

0 comments on commit 88ee86c

Please sign in to comment.