From e6deb60e2a317397e5dd0c5a0d53fe3f77dc76c6 Mon Sep 17 00:00:00 2001 From: scarface-4711 Date: Thu, 12 Jan 2017 21:24:15 +0100 Subject: [PATCH] New properties for netaudio_func_list and playing_func_list --- HELP.md | 12 +++++++++++- README.md | 2 +- denonavr/__init__.py | 2 +- denonavr/denonavr.py | 18 ++++++++++++++++++ setup.py | 2 +- 5 files changed, 32 insertions(+), 4 deletions(-) diff --git a/HELP.md b/HELP.md index 26981f5..3719910 100644 --- a/HELP.md +++ b/HELP.md @@ -29,7 +29,7 @@ DATA __title__ = 'denonavr' VERSION - 0.3.0 + 0.3.1 ==================================================================================== @@ -149,6 +149,16 @@ CLASSES | name | Return the name of the device as string. | + | netaudio_func_list + | Return list of network audio devices. + | Those devices should react to play, pause, next and previous + | track commands. + | + | playing_func_list + | Return list of playing devices. + | Those devices offer additional information about what they are playing + | (e.g. title, artist, album, band, frequency, station, image_url). + | | power | Return the power state of the device. | Possible values are: "ON", "STANDBY" and "OFF" diff --git a/README.md b/README.md index 876b9ca..aa9c37d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # denonavr [![Build Status](https://travis-ci.org/scarface-4711/denonavr.svg?branch=master)](https://travis-ci.org/scarface-4711/denonavr) -Automation Library for Denon AVR receivers - current version 0.3.0 +Automation Library for Denon AVR receivers - current version 0.3.1 ## Installation diff --git a/denonavr/__init__.py b/denonavr/__init__.py index f59878c..a3dd116 100644 --- a/denonavr/__init__.py +++ b/denonavr/__init__.py @@ -17,7 +17,7 @@ logging.getLogger(__name__).addHandler(logging.NullHandler()) __title__ = "denonavr" -__version__ = "0.3.0" +__version__ = "0.3.1" def discover(): diff --git a/denonavr/denonavr.py b/denonavr/denonavr.py index 67b34b5..8be728f 100644 --- a/denonavr/denonavr.py +++ b/denonavr/denonavr.py @@ -728,6 +728,24 @@ def station(self): """Return current radio station as string.""" return self._station + @property + def netaudio_func_list(self): + """Return list of network audio devices. + + Those devices should react to play, pause, next and previous + track commands. + """ + return self._netaudio_func_list + + @property + def playing_func_list(self): + """Return list of playing devices. + + Those devices offer additional information about what they are playing + (e.g. title, artist, album, band, frequency, station, image_url). + """ + return self._playing_func_list + @input_func.setter def input_func(self, input_func): """Setter function for input_func to switch input_func of device.""" diff --git a/setup.py b/setup.py index 65b1247..909b176 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import find_packages, setup setup(name='denonavr', - version='0.3.0', + version='0.3.1', description='Automation Library for Denon AVR receivers', long_description='Automation Library for Denon AVR receivers', url='https://github.com/scarface-4711/denonavr',