Skip to content

Commit

Permalink
New properties for netaudio_func_list and playing_func_list
Browse files Browse the repository at this point in the history
  • Loading branch information
ol-iver committed Jan 12, 2017
1 parent 73cdf8b commit e6deb60
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
12 changes: 11 additions & 1 deletion HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ DATA
__title__ = 'denonavr'

VERSION
0.3.0
0.3.1

====================================================================================

Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion denonavr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
logging.getLogger(__name__).addHandler(logging.NullHandler())

__title__ = "denonavr"
__version__ = "0.3.0"
__version__ = "0.3.1"


def discover():
Expand Down
18 changes: 18 additions & 0 deletions denonavr/denonavr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e6deb60

Please sign in to comment.