1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-13 02:19:16 +00:00

35 Commits

Author SHA1 Message Date
Erik Montnemery
86622cd29d
Remove unnecessary imports of http integration ()
* Remove unnecessary imports of http integration

* Check reason for test failures

* Revert "Check reason for test failures"

This reverts commit 5ccf356ab029402ab87e00dc00eeb4798a0f6658.

* Update tests
2025-03-31 11:30:20 +01:00
Robert Resch
380974eed4
Remove hassio from ALLOWED_USED_COMPONENTS and move some functions to helper ()
* Remove hassio from ALLOWED_USED_COMPONENTS

* Move HassioServiceInfo to helpers.service_info

* Deprecate moved functions

* Add note about deprecation

* Fix tests

* Implement suggestion

* Typo

* Update pyproject.toml

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-10-30 12:43:41 +01:00
Erik Montnemery
3e62c6ae2f
Move core config functionality to its own module ()
* Move core config functionality to its own module

* Adjust test
2024-10-24 13:34:51 +02:00
J. Nick Koston
9ec26a9be5
Fix getting the current host for IPv6 urls () 2024-09-27 11:26:35 +02:00
J. Nick Koston
75ae6a8087
Fix getting the host for the current request () 2024-09-27 03:36:05 -05:00
J. Nick Koston
051a28b55a
Remove unneeded wrapping of URL in URL in network helper ()
* Remove unneeded wrapping of URL in URL in network helper

* fix mocks
2024-09-06 15:34:52 +02:00
Robert Resch
a4829330f6
Add strict connection for cloud ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-24 09:57:38 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ()
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Jan-Philipp Benecke
681705394d
Remove deprecated hass.components from network helper function ()
* Remove deprecated `hass.components` from network helper function

* Remove deprecated use of `hass.components` in alexa camera tests
2024-03-17 17:42:48 +01:00
Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] () 2024-03-08 10:36:11 -05:00
Jan-Philipp Benecke
196089e8b7
Remove deprecated hass.components.hassio usage () 2024-03-02 15:38:31 +01:00
Jan-Philipp Benecke
ebfba7258e
Revert "Drop @bind_hass use from hassio component ()" ()
This reverts commit 4e4345f04e7b4570bbd5dae7d68e20d104df929e.
2024-02-28 10:51:37 +01:00
Jan-Philipp Benecke
4e4345f04e
Drop @bind_hass use from hassio component ()
* Drop `@bind_hass` use from hassio component

* Add comment why we import locally

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-28 00:25:46 +01:00
epenet
5f25b71df7
Add type hints to core tests () 2023-02-20 11:42:56 +01:00
epenet
c98b4e3204
Add typing to tests with single hass argument (2) ()
* Add typing to tests with single hass argument (2)

* a few more
2023-02-08 08:51:43 +01:00
Paulus Schoutsen
929df2bc29
Improve error handling process_play_media_url () 2022-03-20 20:25:15 -07:00
Mike Degatano
4ea6ca7f91
Prefer internal docker URL for VLC telnet when possible () 2022-03-01 21:56:20 -08:00
Paulus Schoutsen
65eefcacfc
Add support for detecting hostname based addresses as internal () 2022-03-01 16:56:05 -08:00
Paulus Schoutsen
716a1e2a64
Add camera media source () 2022-02-08 14:32:02 -08:00
Paulus Schoutsen
95a890c6e1
Get_url to prefer external URL if SSL configured () 2022-02-07 15:44:02 -08:00
Franck Nijhof
ad13a9295e
Merge multiple context managers in tests () 2021-03-27 09:17:15 +01:00
Franck Nijhof
22389043eb
Remove base_url fallback () 2021-02-10 14:31:11 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Chris Talkington
891edec73b
Add test for is_internal_request () 2020-12-02 10:12:48 +01:00
Paulus Schoutsen
f9fa24950b
OAuth2 to use current request header () 2020-11-27 08:55:34 +01:00
Franck Nijhof
c64eec3238
Add bare hostname as valid known hostname in get_url helper () 2020-09-26 09:36:03 +02:00
Franck Nijhof
101b5b3b35
Accept known hosts for get_url for OAuth () 2020-09-11 13:00:00 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Franck Nijhof
20710d8605
Add current request context to get_url helper () 2020-08-09 14:07:31 +02:00
Franck Nijhof
e3e3a113e9
async_get_url -> get_url () 2020-05-08 21:53:28 +02:00
Franck Nijhof
e56dd8ed50
Detect use of deprecated base_url ()
* Detect use of deprecated base_url

* Update get_url helper

* Update core migration

* Migrate all tests
2020-05-08 17:52:32 +02:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url () 2020-05-08 02:29:47 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ()
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Bas Nijholt
f60125b5c9 Sort imports according to PEP8 for 'tests' () 2019-12-09 16:52:24 +01:00
Paulus Schoutsen
5961215e6e
Set up Almond Web to connect to HA ()
* Set up Almond Web to connect to HA

* Add missing string

* Add type
2019-11-12 11:01:19 -08:00