Fabian Affolter
47e31dc9ee
Fixes for PEP257 ( #11810 )
...
* Fixes for PEP257
* More updates
2018-01-20 22:35:38 -08:00
Casper Weiss Bang
85d7377beb
MPD now uses the filename if song doesn't have metadata ( #10085 )
...
* added support for filename
* used the getter instead - minor mistake
* changed how the filename is generated
2017-10-27 11:21:47 +02:00
pdanilew
f5dee2c27d
MPD small improvements ( #9301 )
...
* Power button restored.
* Added volume step and mute
* Removed network operations from property + pylint made happy.
2017-09-13 23:38:07 -07:00
Steven Looman
7ac1e469b7
Set password after connecting. Fixes #8983 ( #9039 )
2017-08-19 10:58:42 +02:00
Steven Looman
342ec8ec99
mpd improvements ( #8655 )
...
* Don't require the MPD device to online during HASS startup
* Hide private variables
* Keep tox/flake8 happy
* Fix typo
* Force direct update
* Implement MpdDevice.available
* Fix typo
2017-07-31 23:18:26 -07:00
Paulus Schoutsen
46e030662d
Fix pylint 1.7.2 no-else-return issues ( #8361 )
...
* Fix pylint 1.7.2 no-else-return issues
* Update tomato.py
2017-07-05 23:30:01 -07:00
Michael Auchter
fb0ee34f10
mpd: implement support for seek, shuffle, and clear playlist ( #8090 )
...
* mpd: add shuffle and clear_playlist support
* mpd: implement seek
2017-06-18 18:31:45 +02:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
Daniyar Yeralin
4d9c7d9684
Update mpd.py ( #6553 )
...
* Update mpd.py
Introducing new parameter "Name"
* Update mpd.py
Change `CONF_LOCATION` to `CONF_NAME`
2017-03-14 20:10:35 +01:00
Jose Juan Montes
f5c58748b7
Adds play URL support to mpd (makes it work with tts). ( #5863 )
...
* Adds play URL support to mpd (makes it work with tts).
* Removed extra line at the end of the file.
2017-02-11 10:07:31 +01:00
Adam Mills
ecfe8e0a9a
Formalize supported_features as entity property ( #5794 )
...
* Formalize supported_features as entity property
* Remove extra emulated_hue conditions
* Generate log message in executor
2017-02-07 20:42:45 -08:00
Nick Touran
784b87eb2f
Add listing and selection of available MPD playlists ( #5237 )
...
* Add listing and selection of available MPD playlists through input source UI.
* MPD support updating playlist list on the fly as well as at turn-on.
* Added no_throttle to force playlist update on mpd power cycle.
* Added kwargs signature to get Throttle working right.
2017-01-16 23:01:57 -08:00
Adam Mills
469472914b
Add SUPPORT_PLAY flag ( #5181 )
...
* Add SUPPORT_PLAY flag
* Add SUPPPORT_PLAY to existing media players
* Leave usage of new flag to device devs
2017-01-09 01:09:30 +01:00
Jan Losinski
5c807c6bd9
MPD: Reconnect mpd client afetr OSError ( #4651 )
...
If the mpd client ran into an socket timeout, the socket will raise an
OSError on every further request. This adds OSError to the list of
excptions, that causes a client reconnect.
This fixes #4650
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2016-12-01 12:28:31 -08:00
Jan Losinski
dd84b4e237
Mpd: Use "file" instead "id" for media_content_id ( #4653 )
...
In media_content_id() the "id" of the current song was returned. as
stated in bug #4652 the id is only the Tracklist-Id in the current
tracklist and is omitted if the track is not part of a tracklist (what
caused the bug in the first place).
To match the semantics described in the dockstring, to return a "Content
ID", this chooses the filename of the current song as id and returns
it.
It also uses get() instead of [] to prevent KeyError.
This fixes bug #4652
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2016-12-01 12:20:42 -08:00
Paulus Schoutsen
ee5f228309
Make services yield ( #4187 )
...
* Make services yield
* Disable pylint abstract-method check
* add input_select
* add input_slider
* change to async vers.
* fix lint
* yield on add_entities as other components does
2016-11-03 18:32:14 -07:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Fabian Affolter
909b5ffa5b
Migrate to voluptuous ( #3202 )
...
🐬
2016-09-05 09:51:18 -06:00
Alexander Fortin
a4409da700
Add add_uri_to_queue support to (sonos) media player ( #1946 )
...
Sonos (SoCo) supports add_uri_to_queue capability, making it possible
to stream media available via HTTP for example. This patch extends
media_player component and sonos platform to support this feature
2016-05-19 23:30:19 -07:00
happyleavesaoc
c341ae0a39
Media Player - MPD: handle more exceptions ( #2045 )
2016-05-11 21:53:56 -07:00
Dan Cinnamon
a482c4b2a1
Allow mpd to handle the play_media service. ( #1831 )
...
Even though there's not really a place in the UI for it, it will now be possible to set a playlist as part of a script, and ultimately a scene.
2016-04-17 12:34:33 -07:00
Fabian Affolter
565ae8d30f
Upgrade python-mpd2 to 0.5.5
2016-03-24 08:07:06 +01:00
Fabian Affolter
cf7c2c492a
Fix PEP257 issues
2016-03-08 10:34:33 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Paulus Schoutsen
cbc6323438
Fix imports
2016-01-28 21:45:26 -08:00
Richard Arends
913c5ab47c
identing error... sorry
2015-12-30 13:26:42 +01:00
Richard Arends
429904c437
Returning None when name and title are both not available
...
Removed trailing whitespaces
2015-12-30 13:00:34 +01:00
Richard Arends
56a2ffca1d
Changed if else statements. The following situations are handled now:
...
- name and title can be None
- name can be None
- title can be None
- name and title can contain data
2015-12-29 22:10:09 +01:00
Richard Arends
6e2fb17f19
Fix KeyError on 'title' when title is empty
2015-12-29 17:52:05 +01:00
Richard Arends
035d518cb6
Expect the case where currentsong['name'] can be absent. Use the .get
...
funtion with a default value set to None
2015-12-13 19:54:10 +01:00
Richard Arends
85b62a20c8
Use format instead of str.join to join name and title
2015-12-13 19:46:17 +01:00
Richard Arends
46f742f82f
Added support for MPD to display the name before the title if it is available
...
When using a radio stream, the name of the station is often available in
currentsong['name']. Just like the 'mpc' CLI client, this change displays
the name of the station before the current song title.
For example: "Mick Jagger - Let's Work" becomes "Radio 10: Mick Jagger - Let's Work"
2015-12-13 18:42:53 +01:00
Richard Arends
9eea7a6cde
Added support for MPD to start playing the current song/playlist
2015-12-12 16:25:56 +01:00
Fabian Affolter
97f9f8aa49
Update link to docs (Jekyll 3 update)
2015-11-09 13:12:18 +01:00
Fabian Affolter
6115be7c42
Remove configuration details
2015-10-23 18:13:45 +02:00
Fabian Affolter
1d910f3a84
Update docstring (config file) and attempt to honor PEP0257 more
2015-09-07 18:35:00 +02:00
Paulus Schoutsen
335eb10d11
Merge pull request #295 from renekliment/mpd-pause-fix
...
fixes MPD play/pause
2015-08-30 14:55:20 -07:00
René Kliment
62f6576e19
fixes MPD play/pause
2015-08-30 16:11:44 +02:00
René Kliment
41011f0c95
support for MPD password authorization
2015-08-30 15:53:40 +02:00
Ryan Kraus
893ae15042
Changed component REQUIREMENTS to absolute versions.
2015-08-29 21:39:50 -04:00
Paulus Schoutsen
940b2998ea
Add REQUIREMENTS list to components
2015-07-07 00:01:46 -07:00
Paulus Schoutsen
0f4de88b92
Fix PyLint import issue
2015-06-10 23:59:37 -07:00
Paulus Schoutsen
ae847994fc
MPD platform fixes
2015-06-10 23:51:38 -07:00
Paulus Schoutsen
5008b25a2d
Fix MPD media player support
2015-06-08 23:06:41 -07:00
Fabian Affolter
fb63198688
fix return values, disconnect from mpd, and fix pylint issue
2015-06-01 13:25:55 +02:00
Fabian Affolter
26c8d81dbf
add configuration desc
2015-05-31 22:21:11 +02:00
Fabian Affolter
ab4ed2e032
add check
2015-05-31 20:53:19 +02:00
Fabian Affolter
453b5a3e8c
add initial mpd
2015-05-31 20:53:18 +02:00