Commit graph

54 commits

Author SHA1 Message Date
Joost Lekkerkerker
73bbfc7a2d
Add base entity to philips js (#96756)
* Create superclass for philips js

* Move device info creation to coordinator
2023-07-17 13:05:58 +02:00
Joost Lekkerkerker
8e00bd4436
Philips.js explicit device naming (#95551) 2023-06-29 16:40:35 +02:00
epenet
3b83340f6e
Improve get_browse_image type hints in media player (#90057) 2023-03-26 19:54:01 +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
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Joakim Plate
9f5b1e58cb
Support playback of channel preset in philips_js (#86491)
* Correct invalid browse check

* Support play_media of channel number

* Use ChannelStep instead of Next/Previous
2023-01-24 11:53:17 +01:00
Joakim Plate
8b6e54a01b
Switch play pause method in philips js (#85343)
fixes undefined
2023-01-08 00:14:25 +01:00
Joakim Plate
e3e64c103d
Switch to attr use in philips js (#85345) 2023-01-07 15:00:32 +01:00
Joakim Plate
2ca7d0dd97
Make sure super async_added_to_hass is called (#83493)
Make sure super added to hass is called
2022-12-08 02:21:55 +01:00
epenet
9d192643ee
Move PluggableAction to trigger helpers (#81900)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-11-22 11:35:18 +01:00
epenet
18e30e7c06
Adjust type hints for MediaPlayerEntityFeature (#82258) 2022-11-17 13:58:34 +01:00
epenet
52b5e1779f
Use new media player enums [p] (#78058) 2022-09-08 22:54:43 +02:00
epenet
474844744b
Improve entity type hints [p] (#77871) 2022-09-06 09:51:33 +02:00
Joakim Plate
4080d2b0da
Convert philips_js to entity naming (#74721)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-07-09 19:34:51 +02:00
epenet
c6bff8ae18
Remove philips_js from mypy ignore list (#74659)
* Remove philips_js from mypy ignore list

* Use class attribute
2022-07-07 22:00:19 +02:00
epenet
80a857c6c2
Use EntityFeature enum in components (p**) (#69434) 2022-04-07 15:03:42 +02:00
Marc Mueller
b664bcd007
Update coordinator typing (4) [o-p] (#68464) 2022-03-21 14:45:24 +01:00
Joakim Plate
6069d26800
Rename root media folder to integration name (#68213) 2022-03-17 11:13:46 +01:00
Joakim Plate
ad09e875a6
Correct philips_js usage of the overloaded coordinator (#66287) 2022-02-10 21:59:42 +01:00
epenet
4f5859c612
Add setup type hints (platforms) (#64354)
* Add setup type hints to arcam_fmj

* Add setup type hints to denonavr

* Add setup type hints to philips_js

* Add setup type hints to zha

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-19 07:44:03 +01:00
epenet
ed5e1af10a
Add type hints to media_player (part 2) (#64006) 2022-01-13 10:43:52 +01:00
Joakim Plate
7c6297db86
Add support for philips js screen state (#62775) 2022-01-04 16:14:44 +01:00
Robert Hillis
a9c45fdcc0
Remove deprecated yaml config from philips_js (#62471) 2021-12-21 11:11:25 +01:00
Robert Hillis
ff654a9753
Use enums philips_js (#62063) 2021-12-16 15:02:38 +01:00
Robert Hillis
7ccfaed736
Use DeviceInfo Class P-R (#58324) 2021-10-25 18:26:03 +02:00
Marc Mueller
ea7252e377
Use assignment expressions 21 (#57970) 2021-10-20 17:47:46 +02:00
Joakim Plate
175f207d28
Avoid sending Standby when already off (#56306) 2021-09-17 06:50:46 +02:00
Franck Nijhof
fcdd8b11a6
Collection of changing entity properties to class attributes - 2 (#51345) 2021-06-01 12:43:55 -07:00
Maciej Bieniek
f212049fc2
Add constructor return type in integrations O-S (#50896) 2021-05-20 15:58:17 +02:00
jan iversen
34b258e812
Rename HomeAssistantType —> HomeAssistant for integrations n* - p* (#49559) 2021-04-22 08:23:19 -10:00
Franck Nijhof
3aed84560f
Merge of nested IF-IF cases - O-R (#48371) 2021-03-27 10:38:57 +01:00
Marc Mueller
3d2b81a401
Update typing 11 (#48072) 2021-03-18 13:21:46 +01:00
Joakim Plate
d39aa9f80b
Bump philips_js with backported fixes (#47959) 2021-03-16 21:24:01 +01:00
Joakim Plate
7626aa5c94
Philips JS correct post review comments (#47247) 2021-03-03 18:51:58 +01:00
Joakim Plate
e12eba1989
Add support for v6 features to philips js integration (#46422) 2021-02-26 09:34:40 -08:00
Joakim Plate
a67b598971
Correct errors found on post merge review in philips_js (#46428)
* Correct missed review changes

* Adjust return value for device trigger

* Drop cannot connect

* Always assume there is a unique id

* No need to yield

* Update homeassistant/components/philips_js/media_player.py

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

* Move typing to init

* Adjust typing instead of returning lambda

* Explicity return None

* Coerce into int

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-12 02:35:29 +01:00
Joakim Plate
8dc06e612f
Add config flow to philips_js (#45784)
* Add config flow to philips_js

* Adjust name of entry to contain serial

* Use device id in event rather than entity id

* Adjust turn on text

* Deprecate all fields

* Be somewhat more explicit in typing

* Switch to direct coordinator access

* Refactor the pluggable action

* Adjust tests a bit

* Minor adjustment

* More adjustments

* Add missing await in update coordinator

* Be more lenient to lack of system info

* Use constant for trigger type and simplify

* Apply suggestions from code review

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

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-11 21:37:53 +01:00
Joakim Plate
7c63119ad2
Fix philips_js channel and source name entry (#44296) 2020-12-17 16:44:24 +01:00
Joakim Plate
11bbc14530
Pass context to on/off scripts (#40254) 2020-10-13 12:13:47 +02:00
Martin Hjelmare
e96fed20c8
Add children media class (#39902)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-11 13:08:13 +02:00
Martin Hjelmare
e6bc48ab68
Remove media class apps and channels (#39864) 2020-09-09 22:19:52 +02:00
Martin Hjelmare
586d7eaba6
Add media class browse media attribute (#39770) 2020-09-08 16:42:01 +02:00
Paulus Schoutsen
df8daf561e
Browse media class (#39698) 2020-09-06 15:52:59 +02:00
Joakim Plate
1cb60dd5c7
Replace old source prefixing for channels with new media browser (#39596)
* Replace old source prefixing for channels with new media browser

* Restore support to call select source with prefix

* Drop warning log for deprecated call method
2020-09-04 22:12:31 +02:00
Phil Bruckner
716fa63e73
Update script helper constructor parameters (#38763)
Add domain and make it and name required.

Add optional running_description.
2020-08-12 11:39:05 -05:00
Erik Montnemery
62bc02fdda
Rename MediaPlayerDevice to MediaPlayerEntity (#34592) 2020-04-25 18:00:57 +02:00
Quentame
5822deda1d Move philips_js imports at top-level (#29003) 2019-11-25 09:41:37 +01:00
Franck Nijhof
1c5e0123c9 Use literal string interpolation in integrations N-Q (f-strings) (#26391) 2019-09-03 11:35:00 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Joakim Plate
b4a7980084 Update Philips js to v0.0.8 (#23462)
* Don't send volume on volume set

This needs updated lib

* Bump version and avoid getting channels explicitly

* Add myself as codeowner

* Use version 0.0.8 instead which doesn't reuse session

Some TV's doesn't play nice with HTTP/1.1 connection
re-use.

* Add new requirement to requirements_all.txt
2019-04-28 21:27:35 -04:00