Commit Graph

41 Commits (27e3ff9c694abbcad74f1da1779539b04aa2da71)

Author SHA1 Message Date
Erik Montnemery 47d0cc9b09
Update integrations to pass target player when resolving media () 2022-05-27 09:05:06 -07:00
Paulus Schoutsen 86570fba19
Convert media player enqueue to an enum () 2022-05-26 13:57:00 -07:00
Raj Laud c7d344692f
Squeezebox grouping () 2022-04-28 21:39:58 -07:00
Raj Laud 0264f060e4
Improve repeat and shuffle support for Squeezebox () 2022-04-28 10:35:04 +02:00
Raj Laud f8870c6364
Handle Squeezebox media ids that are not URLs () 2022-04-12 10:08:54 -07:00
epenet 190ef4ee35
Use EntityFeature enum in components (s** 2/2) () 2022-04-07 15:06:34 +02:00
Paulus Schoutsen cf1a21eb6e
Allow squeezebox to play media sources () 2022-03-04 15:41:51 +01:00
epenet ed5e1af10a
Add type hints to media_player (part 2) () 2022-01-13 10:43:52 +01:00
Franck Nijhof f4aa18de31
Replace hass.helpers: async_call_later() () 2022-01-11 13:30:59 -08:00
epenet b14ac1b94a
Remove invalid return values in setup methods [r-z] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-04 10:52:30 +01:00
Robert Hillis ee878513a7
Remove deprecated yaml config from squeezebox () 2021-12-22 12:03:31 +01:00
Marc Mueller 1ce889be60
Use assignment expressions 36 () 2021-10-31 18:35:27 +01:00
Marc Mueller c979e89b70
Use assignment expressions 14 () 2021-10-21 08:26:01 +02:00
Raj Laud 2db278a7a7
Fix Squeezebox dhcp discovery ()
* Fix Squeezebox dhcp discovery and allow ignore

* Test ignoring known Squeezebox players

* Fix linter errors
2021-08-06 09:29:52 -07:00
Franck Nijhof 2ed386f9e6
Migrate to async_get_current_platform everywhere () 2021-05-03 09:34:28 -07:00
Erik Montnemery 14ff6d4d1f
Update integrations p-s to override extra_state_attributes() () 2021-03-11 21:23:20 +01:00
rajlaud 55a6d37f2c
Add proxy support for browse media images ()
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-11-10 23:51:58 +01:00
rajlaud fcdb54d878
Add browse media support to squeezebox integration ()
* Add browse media support to squeezebox integration

* Move browse media logic to browse_media.py

* Fix missing command when loading single url

* Update .coveragerc

* Handle empty library gracefully

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Implement suggestions from code review

* Additional suggestion from code review

* Use MEDIA_CLASS_GENRE

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-20 01:17:00 -05:00
rajlaud 352995c663
Squeezebox scene fixes ()
* Support for playlist in media_content_id

* Support include playlist index in content_id

* Add media_player.media_stop support to squeezebox
2020-09-01 08:28:34 -04:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Franck Nijhof 53545c984b
Log lines do not end with a full stop () 2020-07-05 23:04:19 +02:00
rajlaud f7325a7d35
Squeezebox dispatch helper () 2020-06-24 10:04:17 -07:00
rajlaud 3f427602ba
Squeezebox config flow ()
* Squeezebox add config flow and player discovery

* Fixes to config flow

* Unavailable player detection and recovery

* Improved error message for auth failure

* Testing for squeezebox config flow

* Import configuration.yaml

* Support for discovery integration

* Internal server discovery

* Fix bug restoring previously detected squeezebox player

* Tests for user and edit steps in config flow

* Tests for import config flow

* Additional config flow tests and fixes

* Linter fixes

* Check that players are found before iterating them

* Remove noisy logger message

* Update requirements_all after rebase

* Use asyncio.Event in discovery task

* Use common keys in strings.json

* Bump pysqueezebox to v0.2.2 for fixed server discovery using python3.7

* Bump pysqueezebox version to v0.2.3

* Don't trap AbortFlow exception

Co-authored-by: J. Nick Koston <nick@koston.org>

* Refactor validate_input

* Update squeezebox tests

* Build data flow schema using function

* Fix linter error

* Updated en.json

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update .coveragerc for squeezebox config flow test

* Mock TIMEOUT for faster testing

* More schema de-duplication and testing improvements

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Testing and config flow improvements

* Remove unused exceptions

* Remove deprecated logger message

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Implement suggestions from code review

* Add async_unload_entry

* Use MockConfigEntry in squeezebox tests

* Remove unnecessary config schema

* Stop server discovery task when last config entry unloaded

* Improvements to async_unload_entry

* Fix bug in _discovery arguments

* Do not await server discovery in async_setup_entry

* Do not await start server discovery in async_setup

* Do not start server discovery from async_setup_entry until homeassistant running

* Re-detect players when server removed and re-added without restart

* Use entry.entry_id instead of unique_id

* Update unittests to avoid patching homeassistant code

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-06-22 09:29:01 -05:00
rajlaud dbf383f713
Squeezebox add query and sync ()
* Add query and sync

* Update description of call_query

* Remove backup files accidentally committed to repo

* Update after pysqueezebox refactor

* Use entity service helper

* Implement suggested changes

* Fix linter error in services.yaml

* Fix long lines in services.yaml
2020-05-04 10:20:21 -04:00
rajlaud 5e249aac5f
Refactor squeezebox ()
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
2020-04-27 12:15:00 +02:00
Erik Montnemery 62bc02fdda
Rename MediaPlayerDevice to MediaPlayerEntity () 2020-04-25 18:00:57 +02:00
springstan 8d61893c39
Use HTTP_OK constant ()
* Use http ok constant

* Remove incorrect use

* Run isort

* Fix pylint by adding missing imports

* Fix pylint by fixing one import
2020-04-08 11:47:38 -05:00
Paulus Schoutsen e9e44dbd97
Fix callback and async ()
* Fix callback and async

* Fix a return

* Fix test

* Fix mqtt tests

* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Bas Nijholt 23b92b2a56 Sort imports according to PEP8 for components starting with "S" () 2019-12-09 14:38:01 +01:00
Sören Beye 94dec483e9 Don't escape command parameters ()
* Don't escape command parameters

Escaping should only be done when using the tcp socket cli interface which we aren't.

* Updated comment to reflect the changes
2019-12-08 15:18:46 +01:00
Raman Gupta 12ae8b025f move squeezebox service to squeezebox domain () 2019-11-27 13:54:00 +01:00
springstan ea0bae2d1b Added plus sign to safe characters in urllib.parse.quote method () 2019-11-14 14:13:16 +01:00
Nikolay Vasilchuk 734704c1f7 Squeezebox LMS reconnect ()
* Fix

* Review
2019-10-22 23:18:00 -07:00
Michał Mrozek 2f6c2fadd0 move imports in squeezebox component () 2019-10-14 14:20:15 -05:00
Franck Nijhof 9c9c921922 Use Python3 new super syntax sugar () 2019-09-24 15:38:20 -07:00
Franck Nijhof 445c741b30 Use literal string interpolation in integrations R-S (f-strings) () 2019-09-03 21:14:39 +02:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Aaron Bach f1e4153b2c
Add area support to media player service schemas ()
* Add area support to media player service schemas

* Re-establish MEDIA_PLAYER_SCHEMA

* Comment

* Localize platforms that used MEDIA_PLAYER_SCHEMA
2019-07-23 18:54:59 -06:00
Paulus Schoutsen f995ab9d54
Don't pass in loop ()
* Don't pass in loop

* Revert some changes

* Lint + Axis revert

* reinstate loop

* Fix a test

* Set loop

* Update camera.py

* Lint
2019-05-22 21:09:59 -07:00
Tobias Sauerwein 048b100eea Clean up docstrings ()
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen f5076188ef
Consolidate all platforms that have no tests ()
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00