Commit graph

51 commits

Author SHA1 Message Date
Marc Mueller
4cd6813d16
Update mypy-dev to 1.12.0a5 (#127181)
* Update mypy-dev to 1.12.0a5

* Fix enable_incomplete_feature

* Fix vlc_telnet

* Fix deconz
2024-10-02 12:00:59 +02:00
Jan-Philipp Benecke
3f531c02a2
Use debug/warning instead of info log level in components [v] (#126228) 2024-09-18 21:15:50 +02:00
Michael
5d61743a5b
Bump aiovlc to 0.3.2 (#118258) 2024-05-28 07:58:20 +02:00
Marc Mueller
25d1ca747b
Use PEP 695 for decorator typing (3) (#117640) 2024-05-17 16:27:32 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
Michael
65120e5789
Store runtime data inside the config entry in VLC telnet (#116803)
store runtime data inside the config entry
2024-05-04 21:52:53 +02:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] (#112705) 2024-03-08 10:35:23 -05:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts (#106080)
* Disable Ruff rules that may conflict with the formatter

* Upgrade Ruff to 0.1.8

- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8

* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Joost Lekkerkerker
904913c1a6
Use shorthand attributes in VLC telnet (#99916)
* Use shorthand attributes in VLC telnet

* Apply suggestions from code review

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

* fix mypy

* Attempt 3

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-09-12 22:37:51 +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
Joost Lekkerkerker
560e0cc7e0
Migrate VLC Telnet to has entity naming (#96774)
* Migrate VLC Telnet to has entity naming

* Remove unused variable
2023-07-17 17:47:47 +02:00
Alan Edwardes
b78318a617
Remove Audio Content Restrictions From vlc_telnet (#86821) 2023-02-20 09:20:46 +01:00
Marc Mueller
45b4b0e990
Import ParamSpec from typing [Py310] (#86413)
* Import ParamSpec from typing [Py310]

* Update additional imports
2023-01-23 07:28:43 +01:00
Martin Hjelmare
2a94c42cea
Support VLC 4 pause (#77302)
* Support VLC 4 pause

* Clean vlc tests types
2022-09-26 16:17:39 +02:00
epenet
cd2abf368f
Use self._attr_state in vlc_telnet media player (#78517) 2022-09-15 14:26:09 +02:00
epenet
8bdeb3ca5b
Use new media player enums [u-w] (#78067) 2022-09-08 23:22:16 +02:00
Erik Montnemery
47d0cc9b09
Update integrations to pass target player when resolving media (#72597) 2022-05-27 09:05:06 -07:00
eyager1
ba7d397704
Improve reliability of VLC metadata parsing (#71856)
* Improve reliability of metadata parsing.

* Remove media_album_name property

* Apply suggestions from code review

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-14 17:14:35 +02:00
Marc Mueller
cdafbbe10f
Rename bound TypeVars (#70975) 2022-04-28 13:19:51 +02:00
Marc Mueller
93cbb331e5
Update Mypy to 0.950 (#70948)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-27 20:49:54 -05:00
epenet
f194f7809b
Use EntityFeature enum in components (v**) (#69465)
* Use EntityFeature enum in vallox

* Use EntityFeature enum in velbus

* Use EntityFeature enum in velux

* Use EntityFeature enum in venstar

* Use EntityFeature enum in vera

* Use EntityFeature enum in verisure

* Use EntityFeature enum in vesync

* Use EntityFeature enum in vicare

* Use EntityFeature enum in vivotek

* Use EntityFeature enum in vizio

* Use EntityFeature enum in vlc

* Use EntityFeature enum in vlc_telnet

* Use EntityFeature enum in volumio
2022-04-07 08:42:18 +02:00
Marc Mueller
53110f8cb7
Update pylint to 2.13.2 (#68704) 2022-03-27 16:08:24 +02:00
Marc Mueller
911b159281
Cleanup after pylint update (#68657) 2022-03-26 00:34:12 +01:00
Marc Mueller
ef71ab04ad
Remove unused TypeVars (#68155) 2022-03-15 08:24:13 +01:00
Mike Degatano
4ea6ca7f91
Prefer internal docker URL for VLC telnet when possible (#67090) 2022-03-01 21:56:20 -08:00
Paulus Schoutsen
3bce870c6d
Add helper for media players to handle HA hosted media (#66120)
* Sonos to sign all HASS urls

* Don't sign if queries in url

* Extract media player hass URL handling to helper
2022-02-09 12:50:33 -08:00
Paulus Schoutsen
e6e49dcb07
VLC Telnet to sign all HASS URLs (#66123) 2022-02-08 17:13:14 -08:00
Paulus Schoutsen
090e667b64
Add local media browser to VLC (#64655) 2022-01-21 13:49:23 -08:00
Marc Mueller
89859aad8d
Fix ParamSpec Callable return types (#63701) 2022-01-09 06:03:18 +01:00
Marc Mueller
5783c07630
Add missing TypeVar in vlc_telnet decorator (#63587) 2022-01-07 12:08:28 +01:00
Marc Mueller
53496c019c
Start using ParamSpec for decorator functions (#63148) 2022-01-04 18:37:46 +01:00
Robert Hillis
1279592a98
Remove deprecated yaml config from vlc_telnet (#62542) 2021-12-21 23:37:46 +01:00
Ville Skyttä
053c456199
Change device entry type to an StrEnum (#59940)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-22 18:14:15 +01:00
Martin Hjelmare
c0801c1233
Type vlc_telnet strictly (#59154) 2021-11-05 14:42:08 +01:00
epenet
8ed4e500d3
Use DeviceInfo in vlc-telnet (#58618)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-28 18:25:10 +02:00
Martin Hjelmare
777589cdcc
Add vlc telnet error handler decorator (#58468)
* Add vlc telnet error handler decorator

* Delint

* Update stale docstring
2021-10-26 18:43:33 +02:00
Marc Mueller
1e98761f30
Use assignment expressions 15 (#57961) 2021-10-18 14:01:23 +02:00
Martin Hjelmare
31ccaac865
Add vlc telnet config flow (#57513) 2021-10-15 11:46:58 -07:00
David McClosky
e47d576ee7
Use MAX_VOLUME constant in vlc_telnet (#48491)
We also don't need to call `int()` anymore due to underlying fixes in
the python-vlc-telnet library.

I believe this is the last item extracted from PR #44776.
2021-03-30 09:57:53 +02:00
David McClosky
f815ebe9cd
Fix unmute bug in vlc_telnet (#48441)
If volume was muted and media_player.volume_up is fired, VLC would still
show up as muted.

PR extracted from #44776.
2021-03-29 18:23:26 +02:00
David McClosky
23c7c4c977
Fallback to filename for title in vlc_telnet (#48438)
PR extracted from #44776.
2021-03-28 19:39:36 +02:00
David McClosky
48c0cfb25c
Detect when media position is stale in vlc_telnet (#48434)
PR extracted from #44776.
2021-03-28 18:19:05 +02:00
David McClosky
70e3fc430c
Fix bug in vlc_telnet seeking (#48425)
Seems the code assumed a different `vlc_telnet` API.

Note that this doesn't address issues in `update()`, which will be
handled in a different PR.

PR extracted from #44776.
2021-03-28 11:58:11 +02:00
David McClosky
37c53e0a04
Sort supported features in vlc_telnet (#46800) 2021-03-15 15:07:36 +01:00
David McClosky
58f6db0127
Fix media_pause in vlc_telnet (#46675)
The underlying python-telnet-vlc pause() function toggles play/pause, so
we need to check our state before calling it.
2021-02-17 06:39:46 +01:00
Martin Hjelmare
f0e9ef421c
Fix vlc_telnet state update (#46628)
* Clean up

* Add debug logs

* Fix info lookup

* Handle more errors

* Guard get length and time
2021-02-16 15:48:06 +01:00
David McClosky
713544e5eb
Bump python-vlc-telnet to 2.0.1 (#46608)
Includes corresponding Home Assistant changes to avoid introducing
regressions.
2021-02-16 12:32:53 +01:00
Erik Montnemery
62bc02fdda
Rename MediaPlayerDevice to MediaPlayerEntity (#34592) 2020-04-25 18:00:57 +02:00
Bas Nijholt
ee1cc3b3dd Sort imports according to PEP8 for components starting with "V" (#29780) 2019-12-09 14:42:53 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00