J. Nick Koston
65358c129a
Replace periodic tasks with background tasks ( #112726 )
...
* Phase out periodic tasks
* false by default or some tests will block forever, will need to fix each one manually
* kwarg works
* kwarg works
* kwarg works
* fixes
* fix more tests
* fix more tests
* fix lifx
* opensky
* pvpc_hourly_pricing
* adjust more
* adjust more
* smarttub
* adjust more
* adjust more
* adjust more
* adjust more
* adjust
* no eager executor
* zha
* qnap_qsw
* fix more
* fix fix
* docs
* its a wrapper now
* add more coverage
* coverage
* cover all combos
* more fixes
* more fixes
* more fixes
* remaining issues are legit bugs in tests
* make tplink test more predictable
* more fixes
* feedreader
* grind out some more
* make test race safe
* one more
2024-03-08 21:45:10 -05:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
Franck Nijhof
e0a9dcd996
Add label registry ( #110821 )
2024-02-19 11:59:08 +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
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
Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Jan-Philipp Benecke
6b7dace8d4
Migrate samsungtv tests to use freezegun ( #105286 )
2023-12-08 14:37:02 +01:00
Erik Montnemery
5b55c7da5f
Remove logic converting empty or falsy YAML to empty dict ( #103912 )
...
* Correct logic converting empty YAML to empty dict
* Modify according to github comments
* Add load_yaml_dict helper
* Update check_config script
* Update tests
2023-12-05 18:08:11 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01: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
J. Nick Koston
433c022687
Save previous unique id in entity registry when it changes ( #102093 )
2023-10-16 21:26:19 -10:00
Joost Lekkerkerker
835982ebe5
Migrate Samsung TV to has entity name ( #96751 )
...
* Migrate Samsung TV to has entity name
* Fix test
* Fix tests
---------
Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>
2023-10-06 13:54:21 +02:00
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions ( #100567 )
2023-09-19 18:58:46 +02:00
Simone Chemelli
fe85b20502
SamsungTV: Add unique_id for when missing (legacy models) ( #96829 )
...
* Add unique_id for when missing (legacy models)
* add comment
* update tests, thx @epenet
2023-09-13 01:24:49 +02:00
Franck Nijhof
30058297cf
Migrate backported StrEnum to built-in StrEnum ( #97101 )
2023-07-23 23:19:24 +02:00
Allen Porter
12129e9d21
Update service call return values and error handling ( #94657 )
...
* Update return signature of service calls
* Add timeout error handling in websocket api for service calls
* Update recorder tests to remove assertion on service call
* Remove timeout behavior and update callers that depend on it today
* Fix tests
* Add missing else
* await coro directly
* Fix more tests
* Update the intent task to use wait instead of timeout
* Remove script service call limits and limit constants
* Update tests that depend on service call limits
* Use wait instead of wait_for and add test
* Update homeassistant/helpers/intent.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-06-16 07:01:40 -07: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
dd1700954b
Deprecate YAML in SamsungTV ( #89743 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-21 09:00:17 +01:00
epenet
6270776fbb
Add turn_on trigger to Samsung TV ( #89018 )
...
* Add turn_on trigger to Samsung TV
* Add tests
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove assert
* Cleanup mock_send_magic_packet
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-03-15 12:43:53 +01:00
epenet
bf5f7c53d8
Move mock_setup_entry to conftest ( #88484 )
2023-03-06 11:31:50 +01:00
epenet
80ee196fd8
Add type hints to integration tests (part 19) ( #88178 )
2023-02-15 18:07:40 +01:00
epenet
a79be493e5
Adjust hass_client type hint in integration tests ( #86954 )
...
* Adjust hass_client type hint in integration tests
* Adjust hass_client_no_auth
* Fix rebase
2023-02-02 16:29:57 -05:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Franck Nijhof
fca3382d37
Migrates tests to use MediaPlayerEntityFeature enum ( #86779 )
2023-01-27 10:56:40 +01:00
epenet
a8c952f82f
Mock async_setup_entry in SamsungTV tests ( #86601 )
...
* Mock async_setup_entry in samsungtv tests
* Adjust test_import_legacy_without_name
* Adjust test_form_reauth_encrypted
* Add specific test
* 100% coverage
2023-01-25 10:48:15 +01:00
Steven Looman
731f618028
Make home assistant discoverable via UPnP/SSDP ( #79820 )
2022-10-15 14:00:46 -04:00
J. Nick Koston
0a8a5b973a
Fix samsungtv to abort when ATTR_UPNP_MANUFACTURER is missing ( #78895 )
2022-09-21 14:02:54 -04:00
epenet
0d696b84b2
Cleanup root component imports in tests ( #78893 )
2022-09-21 06:57:41 -10:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests ( #78859 )
2022-09-21 10:48:55 +02:00
epenet
41d2ac3943
Cleanup MediaClass and MediaType in tests ( #78817 )
...
Cleanup MediaClass/MediaType in tests
2022-09-20 17:55:13 +02:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02:00
epenet
8f7f3f328e
Suppress Upnp error in SamsungTV resubscribe ( #71925 )
...
* Suppress Upnp error in SamsungTV resubscribe
* Supress UpnpCommunicationError instead
* Log resubscribe errors
* Add tests
* Add exc_info
2022-05-18 10:01:56 -07:00
epenet
8d57f70466
Ignore UpnpXmlContentError in SamsungTV ( #72056 )
2022-05-18 09:36:20 +02:00
epenet
afe2b71b2e
Update model info from SSDP in SamsungTV ( #71992 )
...
* Update model info from SSDP in SamsungTV
* Add tests
2022-05-17 22:49:19 +03:00
epenet
db08c04da6
Only test for EncryptedBridge in Samsung J/H models ( #71291 )
2022-05-04 22:15:24 -07:00
epenet
d8d1e98d4e
Fix unique id in SamsungTV config flow ( #69899 )
...
* Fix unique id in SamsungTV config flow
* coverage
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-11 23:37:05 -10:00
epenet
071ef6c74f
Fix upnp subscription in SamsungTV ( #69652 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-08 23:05:00 -07:00
J. Nick Koston
4b5033d08f
Abort samsungtv discovery of legacy devices when unique id not available ( #69376 )
2022-04-05 16:38:55 -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
epenet
8eb2e131e5
Use DmrDevice to communicate with SamsungTV ( #68777 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-28 12:23:38 -10:00
epenet
de130d3b28
Update REST api mocking in SamsungTV ( #68172 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-28 09:04:19 -10:00
J. Nick Koston
6cec53bea1
Add support for finding the samsungtv MainTvAgent service location ( #68763 )
2022-03-27 22:01:07 -10:00
epenet
c024033dae
Add Upnp volume control/status to SamsungTV ( #68663 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-27 12:27:24 -10:00
J. Nick Koston
b5496441ae
Use new samsungtv exception to detect when reauth is needed ( #68762 )
2022-03-27 12:12:32 -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
b13e14b80c
Add command support to SamsungTV H/J models ( #68301 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-24 07:58:58 -10:00
epenet
9ba0475644
Use callback to get app_list in SamsungTV ( #68506 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-23 11:12:12 -10:00