Commit graph

56 commits

Author SHA1 Message Date
epenet
f17c5bc334
Use new reauth helpers in samsungtv (#128729) 2024-10-19 11:24:41 +02:00
epenet
c1fa3d99f3
Update log error message for Samsung TV (#127231) 2024-10-01 22:06:56 +02:00
Jan-Philipp Benecke
1d425f3913
Use debug/warning instead of info log level in components [s] (#126141)
* Use debug/warning instead of info log level in components [s]

* Fix merge error
2024-09-18 21:33:52 +02:00
Michael
844ccf461f
Remove unnecessary config schema definitions (#123197) 2024-08-05 17:44:14 +02:00
epenet
ac08cd1201
Revert SamsungTV migration (#119234) 2024-06-10 20:20:25 +02:00
epenet
738935a73a
Update device connections in samsungtv (#118556) 2024-05-31 16:07:51 -05:00
epenet
b898c86c89
Add MAC cleanup to SamsungTV (#117906)
* Add MAC cleanup to samsungtv

* Simplify

* Adjust

* leftover

* Appl

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

* Update diagnostics tests

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-05-22 10:36:21 +02:00
epenet
39b4e890a0
Add coordinator to SamsungTV (#117863)
* Introduce samsungtv coordinator

* Adjust

* Adjust media_player

* Remove remote

* Adjust

* Fix mypy

* Adjust

* Use coordinator.async_refresh
2024-05-22 09:20:05 +02:00
epenet
bfffcc3ad6
Simplify samsungtv unload (#117838) 2024-05-21 10:01:52 +02:00
epenet
aaa5df9981
Refactor SamsungTV auth check (#117834) 2024-05-21 09:14:17 +02:00
Michael
f143ed9eeb
Store runtime data inside the config entry in SamsungTV (#116787) 2024-05-04 19:12:31 +02: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
J. Nick Koston
658bef5447
Migrate samsungtv stop to use run_immediately (#113834)
There is no need for a call_soon here
2024-03-19 22:01:23 +01:00
Marc Mueller
930a396712
Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
J. Nick Koston
ff0e0b3e77
Convert debouncer async_shutdown to be a normal function (#111257)
* Convert debouncer async_shutdown to be a normal function

nothing was being awaited here and the shutdown call was only used
in integrations marked internal and other internals. Its possible
that a custom component might have been using the method but it
seemed uncommon enough that it did not warrent marking as a breaking
change. The update coordinator is no longer awaiting anything in
async_shutdown either now but it seemed likely that this use
would get subclassed.

* fix
2024-02-24 08:37:33 +01:00
J. Nick Koston
28afe9ff9e
Correct misaligned formatting of mac addresses in samsungtv (#110599)
* Correct misaligned formatting of mac addresses in samsungtv

dhcp returns addresses in lowercase without : and there were places
were it was not passed through format_mac which resulted in the wrong
format being saved in the config entry

* safer
2024-02-14 17:25:08 -05:00
J. Nick Koston
2981d7ed0e
Fix logger message in samsungtv (#110484) 2024-02-13 11:12:37 -06:00
J. Nick Koston
d78bb3894c
Migrate samsungtv to use async_update_entry to alter config entries (#110362) 2024-02-12 11:41:46 -06:00
epenet
c9e8a3a887
Fix invalid MAC in samsungtv (#103512)
* Fix invalid MAC in samsungtv

* Also adjust __init__
2023-11-06 23:43:56 +01:00
Philip Peitsch
6c66af4e41
Add ability to send custom keys to Samsung TV (#83439)
* Add SamsungTV Remote entity with support for turn-off and send command

* Fix SamsungTV remote tests
2023-05-25 15:55:44 +02:00
epenet
1dccb8a9a9
Cleanup deprecated YAML from samsungtv (#93392) 2023-05-23 11:33:51 +02:00
epenet
81f018b7e5
Make Debouncer shutdown async (#91542)
* Make shutdown async in Debouncer

* Adjust test
2023-04-17 23:31:30 +02:00
epenet
bdb55a4262
Fix lingering timer in samsungtv (#91450) 2023-04-16 08:24:04 +02:00
Erik Montnemery
3467f4674e
Remove unnecessary calls to async_update_entry from async_migrate_entry (#90575) 2023-03-31 15:53:35 +02:00
epenet
dd1700954b
Deprecate YAML in SamsungTV (#89743)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-21 09:00:17 +01:00
J. Nick Koston
6270f33bee
Migrate samsungtv to use async_forward_entry_setups (#86575)
Replaces deprecated async_setup_platforms with async_forward_entry_setups
2023-01-25 11:17:24 +01:00
Franck Nijhof
f39f3b612a
String formatting and max line length - Part 5 (#84501)
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 16:43:17 +01:00
Marc Mueller
5ae5ae5392
Improve debouncer typing (#75436) 2022-07-19 18:35:04 +02:00
Franck Nijhof
69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass (#72005) 2022-05-17 16:40:45 +02:00
Franck Nijhof
cba2fda93d
Fix clear config entry from registry in Samsung TV migration (#72004)
* Fix clear config entry from device registry

* Fix clear config entry from entity registry
2022-05-17 14:13:21 +02:00
epenet
db08c04da6
Only test for EncryptedBridge in Samsung J/H models (#71291) 2022-05-04 22:15:24 -07:00
epenet
2bb42f48aa
Add CONF_MODEL to core constants (#68806)
* Add CONF_MODEL to core constants

* Use CONF_MODEL in SamsungTV

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-29 10:01:10 +02:00
J. Nick Koston
6cec53bea1
Add support for finding the samsungtv MainTvAgent service location (#68763) 2022-03-27 22:01:07 -10:00
J. Nick Koston
cc75cebfc5
Add support for setting up encrypted samsung tvs from config flow (#68717)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-27 10:30:45 -10:00
epenet
87378016c1
Add basic support for SamsungTV encrypted models (#68500)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-22 00:11:41 -10:00
epenet
0adc7042dc
Make new_token_callback more generic in SamsungTV (#67990)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-17 09:24:00 -10:00
epenet
86b775e46a
Use generic SamsungTVBridge for SamsungTV type hints (#67942)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-10 07:48:30 -06:00
epenet
9db3e321e4
Add message for unsupported models in samsungtv (#67549)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-04 12:06:15 -10:00
epenet
b8861578ff
Implement async websocket in samsungtv (#67127)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-02 09:30:33 -10:00
epenet
418808d873
Cleanup search for mac in samsungtv (#67374)
* Add logging on config_entry update

* Add search for mac

* Use info

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-01 19:21:40 +02:00
epenet
715d7f70f0
Adjust SamsungTV abstraction layer (#67216)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-25 17:15:45 +01:00
epenet
a60c37cdb8
Expose Samsung wrapper as async (#67042)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-22 08:31:16 -10:00
epenet
3b146d8e9b
Use hass.add_job in samsungtv (#66976)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-21 09:11:29 +01:00
epenet
92ce255293
Ensure new samsungtv token is updated in the config_entry (#66731)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-17 12:49:01 -08:00
Marc Mueller
40262c4763
Fix exception import locations (#63454) 2022-01-05 15:00:49 +01:00
Marc Mueller
f7193400d4
Use platform enum (6) [S] (#60944) 2021-12-04 13:43:48 +01:00
Simone Chemelli
4160a5ee3b
Strict typing for SamsungTV (#53585)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-17 18:51:07 -10:00
Simone Chemelli
2025afe14b
Add MAC to SamsungTV when missing (#53479)
* Add MAC when missing

* Fix I/O

* Add test for missing MAC address
2021-07-26 16:43:05 +02:00
J. Nick Koston
5695710463
Add mac address to samsungtv config entry data if missing (#51634)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-24 08:15:16 -10:00
Simone Chemelli
b9a0fb93eb
Add samsungtv dhcp and zeroconf discovery (#48022)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-22 10:41:18 -05:00