Commit graph

29 commits

Author SHA1 Message Date
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ()
* add_devices -> add_entities

* Lint

* PyLint

* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Ville Skyttä
dbd0763f83 Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
Anders Melchiorsen
f8127a3902 Add a polling fallback for Sonos ()
* Prepare for poll

* Add a polling fallback for Sonos
2018-03-20 19:27:07 -07:00
Anders Melchiorsen
5e675677ad
Cleanup Sonos platform setup ()
* Cleanup Sonos platform setup

* Remove unneeded lists
2018-03-15 20:43:28 +01:00
Anders Melchiorsen
44e4f8d1ba Fix Sonos group discovery ()
* Avoid iterating sonos devices that are not yet added

* Rebuild zone topology for each new device
2018-03-08 15:39:31 -08:00
Anders Melchiorsen
635d36c6ba
Rework Sonos media player platform ()
* Rework Sonos media player platform for push

* Ignore play_mode from events where it is missing

* Remove unused preload helper

* Freeze SoCo version

* Updates for entity registry

* Add codeowner

* Use real soco release
2018-02-18 20:05:20 +01:00
Ville Skyttä
55ee8959ba Spelling fixes () 2018-01-27 11:58:27 -08:00
Brad Dixon
dfb8b5a3c1 Revbump to SoCo 0.13 and add support for Night Sound and Speech Enhancement. ()
Sonos Playbar and Playbase devices support Night Sound and Speech Enhancement
effects when playing from sources such as a TV. Adds a new service "sonos_set_option"
whichs accepts boolean options to control these audio features.
2017-12-17 13:08:35 +01:00
Marcus Schmidt
929d49ed6f Shuffle support in Sonos ()
* initial commit of shuffle option for sonos

* added test

* Small adjustments to adhere to review requests

* Removed unnessesary setting of variable. Use shuffle state from soco instead
2017-12-07 14:44:06 -05:00
Marc Egli
4da91d6a8b Add sonos alarm clock update service ()
* Add sonos alarm clock update service

* Add tests and break lines

* Fix style errors

* Make test work with python<3.6

* Fix last two pylint errors

* fix new line to long errors
2017-05-15 00:42:45 -07:00
Marc Egli
d86dfb6336 Fix sonos sleep timer () 2017-05-09 18:35:51 +02:00
Paulus Schoutsen
edf500e66b Upgrade netdisco to 1.0.0rc2 ()
* Upgrade netdisco to 1.0.0rc2

* fix tests
2017-04-11 20:10:02 -07:00
Pascal Vizeli
86568b443c Fix startup of sonos / snapshot handling / error handling ()
* Fix startup of sonos / snapshot handling / error handling

* Use decorator for coordinator relay

* fix lint

* Fix unittest

* Move subscribe into executor
2017-04-05 23:24:30 -07:00
Paulus Schoutsen
2650c73a89 Split bootstrap into bs + setup ()
* Split bootstrap into bs + setup

* Lint
2017-03-05 10:41:54 +01:00
Pascal Vizeli
48161697f8 Sonos fix favorite, coordinator, cleanup update ()
* Sonos fix favorite, coordinator, cleanup update

* Bugfix snapshot restore
2017-02-07 00:27:55 -08:00
Pascal Vizeli
32f8622bba Bugfix sonos group coordinator ()
* Bugfix sonos group coordinator

* Fix tests
2017-02-01 16:53:02 +01:00
Pascal Vizeli
1d4e967106 sonos set coordinator after join/unjoin ()
* sonos set coordinator after join/unjoin

* fix unittest
2017-01-27 15:37:16 +01:00
Pascal Vizeli
4831f57834 Bugfix sonos / refactor of sonos function for TTS ()
* Bugfix sonos / refactor of sonos function for TTS

* fix unittest

* update service yaml

* restore group of a coordinator

* use group function to evaluate

* fix state flooting

* fix comments
2017-01-26 22:50:36 -08:00
Lewis Juggins
83a108b20a Sonos specify IP for event subscription () 2016-12-01 22:22:03 -08:00
Fabian Affolter
51e20c92f9 WIP Fix pylint and PEP257 issues (tests) ()
* Fix pylint and PEP257 issues

* More PEP257 fixes
2016-12-01 21:45:19 -08:00
Pascal Vizeli
ad8645baf4 Sonos fix for slow update ()
* Sonos fix for slow update

* fix auto update on discovery

* fix unittest
2016-11-05 16:58:29 -07:00
Lewis Juggins
6f68752d1e Speed up Sonos tests () 2016-11-03 21:23:37 -07:00
Bjarni Ivarsson
c549ea115d Sonos responsiveness improvements + enhancements ()
* Sonos responsiveness improvements (async_ coroutines, event based updating, album art caching) + Better radio station information

* Docstring fixes.

* Docstring fixes.

* Updated SoCo dependency + fixed file permissions.

* Only fetch speaker info if needed.

* PEP8 fixes

* Fixed SoCoMock.get_speaker_info to get test to pass.

* Regenerated requirements_all.txt + async fetching of album art with caching + added http_session to HomeAssistant object.

* Unit test fixed.

* Add blank line as per flake8

* Fixed media image proxy unit test.

* Removed async stuff.

* Removed last remnants of async stuff.
2016-11-01 10:42:38 -07:00
Scott O'Neil
7f48c00793 Adding timer setting functionality to sonos component ()
* Adding timer setting functionality to sonos component

* Adding clear sleep timer for Sonos
2016-10-25 23:22:17 -07:00
Bjarni Ivarsson
961c02f72a Sonos improvements ()
* Sonos improvements: media_* properties delegate to coordinator if speaker is a slave, media_image_url and media_title now works for radio streams, source selection/list takes speaker model into account, commands on slaves delegate to coordinator.

* Fixed failing unit tests.
2016-10-26 00:37:47 +02:00
Pascal Vizeli
c32afcd961 Bugfix sonos ()
* Bugfix Sonos

* lint

* Use player uid for looking of exists

* fix lint

* fix unittest

* Change player_id to unique_id
2016-10-20 08:36:48 -07:00
Rob Capellini
4891ca1610 Removing calls to mock.assert_called_once_with ()
If a mock's assert_called_once_with method is misspelled (e.g. asert_called_once_with) then the test will appear as passing.  Therefore, this commit removes all instances of assert_called_once_with calls and replaces them with two assertions:

        self.assertEqual(mock.call_count, 1)
        self.assertEqual(mock.call_args, mock.call(call_args))
2016-10-16 16:13:27 -07:00
Scott O'Neil
822a263622 Fixing PEP257 issues in () 2016-07-30 10:30:13 +02:00
Scott O'Neil
bf3c0472bb Adding tests for sonos registration () 2016-07-28 20:40:58 -07:00