Commit graph

35 commits

Author SHA1 Message Date
Greg Dowling
3ec9312f0e
Fix bug in roon media player to use correct 'seek position' while playing a track. (#113999)
Chance source of 'seek position' to be the one that roon updates while playing!
2024-03-23 14:53:40 +01:00
Marc Mueller
a033574ee2
Add empty line after module docstring [r] (#112703) 2024-03-08 15:05:07 +01:00
Joost Lekkerkerker
730d805876
Enable SIM114 ruff rule (#111125) 2024-02-23 13:21:59 +01:00
Greg Dowling
3911894599
Fix roon volume truncation bug (#105696) 2023-12-27 13:37:13 +01:00
Greg Dowling
334673154c
Fix bug in roon incremental volume control. (#105201) 2023-12-07 11:00:26 +01:00
Greg Dowling
dcb3dc254d
Improve handling of roon media players with fixed and incremental volume (#99819) 2023-10-12 12:52:01 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Erik Montnemery
334dacc322
Change Entity.name default to UNDEFINED (#94574)
* Change Entity.name default to UNDEFINED

* Update typing

* Update Pylint plugin

* Update TTS test
2023-06-15 11:09:53 +02:00
epenet
f56bf134d2
Improve browse_media type hints in media player (#90060)
* Improve browse_media type hints in media player

* Adjust components

* Adjust base entity
2023-03-24 21:49:12 -07:00
epenet
4836404288
Improve media_player type hints in integrations (#90029)
Fix some media_player type hints
2023-03-21 11:10:12 +01:00
Greg Dowling
7b54061ab7
Add repeat to roon media player (#88851) 2023-03-05 15:43:52 +01:00
Greg Dowling
f79ffb2981
Improve roon volume translation logic (#84916)
Improve roon volume translation logic.
2023-01-02 00:16:37 -05:00
Franck Nijhof
94755a5773
String formatting and max line length - Part 4 (#84445)
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 13:27:27 +01:00
epenet
fa08916a0a
Use attributes in roon media player (#82838)
* Use _attr_state in roon media player

* Remove more properties

* Use early exit
2022-11-28 14:11:55 +01:00
epenet
45d0ec7150
Use new media player enums [r] (#78062) 2022-09-08 22:59:52 +02:00
epenet
6f564e4f51
Improve entity type hints [r] (#77874) 2022-09-06 09:47:35 +02:00
epenet
d32f3e359f
Use _attr_should_poll in components [o-r] (#77364) 2022-08-26 21:41:41 +02:00
epenet
b8fc399882
Use EntityFeature enum in components (r**) (#69437) 2022-04-07 14:55:09 +02:00
epenet
1519aa202d
Add media_player setup type hints [m-x] (#63298)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 16:09:34 +01:00
Robert Hillis
7ccfaed736
Use DeviceInfo Class P-R (#58324) 2021-10-25 18:26:03 +02:00
epenet
a3d1159a13
Use DeviceInfo on components with via_device (R-X) (#58213)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 12:52:33 +02:00
Marc Mueller
9561c51276
Use assignment expressions 16 (#57962) 2021-10-18 19:36:35 -07:00
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere (#50034) 2021-05-03 09:34:28 -07:00
Greg Dowling
cd84595429
Rework roon media player grouping to use media_player base services (#49667)
* Add group/join status attributes to roon player.

* Rework join/unjoin code to use base media_player services.

* Switch join and unjoin to be sync.
2021-04-27 23:55:29 +02:00
Franck Nijhof
fb849b81b5
Rewrite of not a == b occurances (#48132) 2021-03-20 01:27:04 +01:00
Mick Vleeshouwer
1d94c10bb5
Change via_hub to via_device (#45804) 2021-01-31 20:55:18 -10:00
Greg Dowling
3de2c900f3
Fix Roon play_media (#45532) 2021-01-25 17:44:18 +01:00
Greg Dowling
adab9adbce
Pyroon discovery (#44811)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-01-18 10:00:30 -05:00
Greg Dowling
a1b0d6baad
Improve Roon media player play_media (#45221)
* Use revised play_media api.

* Move split path function to library.
2021-01-17 21:00:30 +01:00
Greg Dowling
0860ce4099
Tidy after adding group services to roon media player (#42512)
* Tidy after adding roon group services.

* Fix missed changes.
2020-10-28 17:32:23 +01:00
Greg Dowling
30a3fe69bc
Add platform services to Roon media player to allow grouping, ungrouping and transfer between players (#42133) 2020-10-27 21:50:20 +01:00
Greg Dowling
9a54c31c34
Add media browser support to roon media player (#42061) 2020-10-22 14:54:55 +02:00
Greg Dowling
08d5175d05
Improve handling of roon radio data (#39659) 2020-09-04 13:19:18 -05:00
Greg Dowling
637fdf72ca
Improve volume handling for Roon (#39119)
* Handle players without volume attribute.

* Refactor volume and now_playing error handling,

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

* Review suggestions.

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-27 22:18:09 -05:00
Greg Dowling
e9b50706a9
Add roon media player integration (#37553)
* Import roon code.

* Fix flake8/pylint issues.

* Fix lint issues, extend timeout, change contact infomation.

* Add new files to .coveragerc

* Make file executable.

* Fix problem with integration not working after initial creation.

* Improve logic unavailable players by caching data.

* Review changes

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

* Review changes

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

* Review changes

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

* Review changes

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

* Review changes

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

* Review changes

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

* Review changes

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

* Review changes

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

* Review changes

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

* Review changes

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

* Update review suggestions

* Rremove custom play action script.

* Add test requirements.

* Tidy manifest.

* Missed fixes.

* Refactor config_flow to use current pattern.

* Add config_flow tests.

* Refactor to use signal dispatch helpers.

* Remove ToDo: for now.

* Remove remaining zone / source logic for initial release,

* Stop authenticate blocking, handle timeout.

* Removed unneeded code.

* Review comments update.

* Fix comment.

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Fix bug in seek.

* Use sync rather than async update

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

* Upgrade library, remove exception now caught in library,

* Review comments.

* Review changes

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

* Check for duplicate host before adding.

* Review comment.

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

* Remove unused code, revise turn_on/turn_off.

* Sync translations.

* Make interim timeout const.

* Refactor tests.

* Add tests with an existing config entry.

* Apply suggestions from code review

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

* Remove CannotConnect

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-08-12 09:09:47 -04:00