Commit Graph

259 Commits (837ee7c4fb87049fc1993f4f809a26312adabbe1)

Author SHA1 Message Date
Marc Mueller 44049c34f9
Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
Michael 9557ea902e
Store runtime data inside the config entry in Apple TV (#117032)
store runtime data inside the config entry
2024-05-07 22:13:53 +02:00
Sid 2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
myMartek 18ac9a7ba5
Add select hold to AppleTVs remote entity as possible command (#105764)
* Fixed home hold and added select hold

* Fixed home hold and added select hold

* Removed select_hold for now

* Fixed wrong import block sorting

* Fixed unit tests for AppleTV

* Added select hold command to AppleTV integration

* Removed home_hold and added hold_secs option for remote commands

* Added DEFAULT_HOLD_SECS

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-04-16 16:16:32 +02:00
J. Nick Koston 469b01bd64
Migrate apple_tv to use async_schedule_reload (#115241) 2024-04-09 07:05:23 -10:00
J. Nick Koston ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately (#115169) 2024-04-08 10:07:54 -10:00
Sid 6587ee20db
Enable Ruff TRY300 (#114437)
* Enable Ruff TRY300

* Update validation.py

* Address review comments
2024-03-30 10:37:59 +01:00
J. Nick Koston f51ac30b5a
Call async task creation api in apple_tv (#113782) 2024-03-19 08:44:13 +01:00
Sid 82a60fe8ad
Enable Ruff RSE (#113695) 2024-03-18 00:40:38 +01:00
J. Nick Koston 44cac3c90a
Run apple_tv shutdown eagerly at the stop event (#113637)
The shutdown can be done without having to schedule a task on the event loop
2024-03-16 19:34:27 -04:00
J. Nick Koston e0828f1efc
Ensure apple_tv setup retries later on timeout (#113367) 2024-03-13 15:12:13 -10:00
J. Nick Koston 44538ed3c3
Ensure apple_tv connect loop is cancelled on shutdown (#113191) 2024-03-13 12:02:56 +01:00
Marc Mueller 2c06d4fcb9
Add empty line after module docstring (2) [components] (#112736) 2024-03-08 19:15:59 +01:00
Paulus Schoutsen f416d67d21
Remove built-in support for import_executor in manifest (#112725) 2024-03-08 12:02:32 -05:00
Marc Mueller ff3a801936
Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
G Johansson 4bdcab7cc2
Rename reconfigure step in apple_tv (#112438) 2024-03-05 21:36:46 +01:00
Erik Montnemery 6fe28d3764
Migrate integrations a-d to generic flowhandler (#111861) 2024-02-29 20:07:14 +01:00
J. Nick Koston 4ea1c5cc3c
Add support for importing integrations in the executor (#111336)
* Add support for pre-imports at setup time

alternative solution to #111331

* refactor

* refactor

* refactor

* mark >1.0s integrations

* no point in executor if already loaded

* no point in executor if already loaded

* cleanup

* cleanup

* two more

* one more

* analytics loads a lot more integrations

* cloud

* debug

* psutil, hardwre

* try zha

* Update homeassistant/setup.py

* await

* comments

* coverage

* coverage

* coverage

* move logic to loader

* move logic to loader

* preserve comments
2024-02-26 14:49:43 -05:00
Stackie Jia 636c7ce350
Enable strict type checking on apple_tv integration (#101688)
* Enable strict type checking on apple_tv integration

* move some instance variables to class variables

* fix type of attr_value

* fix tests for description_placeholders assertion

* nits

* Apply suggestions from code review

* Update remote.py

* Apply suggestions from code review

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update config_flow.py

* Improve test coverage

* Update test_config_flow.py

* Update __init__.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-02-15 15:17:00 +01:00
J. Nick Koston ced922bb1a
Improve apple_tv error reporting when setup fails (#110071)
* Improve apple_tv error reporting when setup fails

* Improve apple_tv error reporting when setup fails

* Update homeassistant/components/apple_tv/__init__.py

* ensure cleaned up
2024-02-09 08:50:30 -05:00
Cody C 2c91b31233
Remove default name prefix of HomePods from Suggested Area in Apple TV integration (#109489) 2024-02-04 17:22:22 +01:00
J. Nick Koston 5d3364521f
Fix app name sorting in apple_tv (#109274) 2024-02-01 08:53:18 +01:00
J. Nick Koston 426fce93aa
Use new config entry update/abort helper in apple_tv (#108688) 2024-01-22 13:24:03 -10:00
J. Nick Koston cfbfdf7949
Fix apple_tv IP Address not being updated from discovery (#107611) 2024-01-17 17:43:14 -10:00
J. Nick Koston 93d363ea57
Improve apple_tv typing (#107694) 2024-01-14 09:37:04 +01:00
J. Nick Koston afed45d5d0
Replace intersection with isdisjoint in apple_tv config flow (#106633) 2024-01-02 17:58:00 +01:00
Amit Finkelstein edf2e42e4d
Apple TV: Use replacement commands for deprecated ones (#102056)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-10-26 10:46:20 +02:00
J. Nick Koston fa1df7e334
Bump pyatv to 0.14.3 (#102196) 2023-10-23 15:48:19 -05:00
J. Nick Koston 6c095a963d
Switch config flows use newer zeroconf methods to check IP Addresses (#100568) 2023-09-20 01:08:58 +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
J. Nick Koston 157f7a3079
Bump pyatv to 0.13.4 (#97932) 2023-08-06 12:20:28 -10:00
J. Nick Koston 6e5baeec70
Bump pyatv to 0.13.3 (#97670)
changelog: https://github.com/postlund/pyatv/compare/v0.13.2...v0.13.3

maybe fixes #80215
2023-08-03 14:31:49 +03:00
Joost Lekkerkerker a27e126c86
Migrate AppleTV to use has entity name (#96563)
* Migrate AppleTV to use has entity name

* Add comma
2023-07-15 03:31:56 +02:00
Paulus Schoutsen 7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof 52d57efcbf
Revert "Remove airplay filter now that apple tv supports airplay 2" (#95843) 2023-07-04 14:41:19 +02:00
J. Nick Koston df65fa3899
Bump pyatv to 0.13.2 (#95388) 2023-06-27 17:38:15 +02:00
J. Nick Koston 80d4f90e70
Add missing abort string to apple_tv (#94818) 2023-06-19 11:51:39 +02:00
Michał Modzelewski 3778e1cd77
Support launching app deep links in apple_tv integration (#94705) 2023-06-16 13:05:46 -05:00
J. Nick Koston 45bf1235d8
Remove airplay filter now that apple tv supports airplay 2 (#94693)
remove airplay filter
2023-06-15 22:09:10 -04:00
Michał Modzelewski b104680c6d
Bump pyatv to 0.13.0 (#94683) 2023-06-15 11:57:36 -10:00
Michał Modzelewski 33387bf418
Readable paired device names for Apple TV airplay and companion protocols (#93449)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-05-24 20:07:49 -05:00
Michał Modzelewski d5e09bd4c3
Support volume level push updates in apple_tv integration (#93496) 2023-05-24 18:28:29 -05:00
J. Nick Koston 210c309770
Bump pyatv to 0.11.0 (#93172) 2023-05-16 18:52:18 -05:00
J. Nick Koston 3a95a1fd8a
Fix ignored apple tvs being scanned over and over (#92150) 2023-04-28 09:52:20 +02:00
Martin Hjelmare 4b58800530
Fix apple tv untracked task (#88102) 2023-02-14 17:14:17 +01:00
Erik Montnemery 231aad7a68
Sort manifests 1 (#87022) 2023-02-08 20:29:44 +01:00
Franck Nijhof 939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action 3f992ed31d [ci skip] Translation update 2023-02-04 00:23:44 +00:00
Franck Nijhof ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
GitHub Action d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00