epenet and GitHub
7169d52010
Remove import annotations from core ( #169547 )
2026-04-30 20:34:43 +02:00
Artur Pragacz and GitHub
f5fef37210
Remove bind_hass usage ( #168369 )
2026-04-16 15:38:59 +02:00
Marc Mueller and GitHub
2c13c70e12
Update ruff to 0.12.0 ( #147106 )
2025-06-19 20:39:09 +02:00
Erik Montnemery and GitHub
86622cd29d
Remove unnecessary imports of http integration ( #141899 )
...
* Remove unnecessary imports of http integration
* Check reason for test failures
* Revert "Check reason for test failures"
This reverts commit 5ccf356ab0 .
* Update tests
2025-03-31 11:30:20 +01:00
380974eed4
Remove hassio from ALLOWED_USED_COMPONENTS and move some functions to helper ( #127228 )
...
* 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 <[email protected] >
---------
Co-authored-by: epenet <[email protected] >
2024-10-30 12:43:41 +01:00
J. Nick Koston and GitHub
9ec26a9be5
Fix getting the current host for IPv6 urls ( #126889 )
2024-09-27 11:26:35 +02:00
J. Nick Koston and GitHub
75ae6a8087
Fix getting the host for the current request ( #126882 )
2024-09-27 03:36:05 -05:00
J. Nick Koston and GitHub
051a28b55a
Remove unneeded wrapping of URL in URL in network helper ( #125265 )
...
* Remove unneeded wrapping of URL in URL in network helper
* fix mocks
2024-09-06 15:34:52 +02:00
a4829330f6
Add strict connection for cloud ( #115814 )
...
Co-authored-by: Martin Hjelmare <[email protected] >
2024-04-24 09:57:38 +02:00
Sid and GitHub
6587ee20db
Enable Ruff TRY300 ( #114437 )
...
* Enable Ruff TRY300
* Update validation.py
* Address review comments
2024-03-30 10:37:59 +01:00
Jan-Philipp Benecke and GitHub
681705394d
Remove deprecated hass.components from network helper function ( #113615 )
...
* 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 and GitHub
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
Erik Montnemery and GitHub
49d20eedd4
Remove local imports of hass-nabucasa ( #112634 )
2024-03-07 20:37:35 +01:00
Jan-Philipp Benecke and GitHub
196089e8b7
Remove deprecated hass.components.hassio usage ( #111878 )
2024-03-02 15:38:31 +01:00
Jan-Philipp Benecke and GitHub
ebfba7258e
Revert "Drop @bind_hass use from hassio component ( #111522 )" ( #111705 )
...
This reverts commit 4e4345f04e .
2024-02-28 10:51:37 +01:00
4e4345f04e
Drop @bind_hass use from hassio component ( #111522 )
...
* Drop `@bind_hass` use from hassio component
* Add comment why we import locally
---------
Co-authored-by: J. Nick Koston <[email protected] >
2024-02-28 00:25:46 +01:00
852fb58ca8
Extend auth/providers endpoint and add /api/person/list endpoint for local ip requests ( #103906 )
...
Co-authored-by: Martin Hjelmare <[email protected] >
2023-11-24 17:11:54 +01:00
Franck Nijhof and GitHub
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Marc Mueller and GitHub
97af164858
Prepare for upcoming mypy update ( #70800 )
2022-04-26 07:41:52 -07:00
Paulus Schoutsen and GitHub
929df2bc29
Improve error handling process_play_media_url ( #68322 )
2022-03-20 20:25:15 -07:00
Mike Degatano and GitHub
4ea6ca7f91
Prefer internal docker URL for VLC telnet when possible ( #67090 )
2022-03-01 21:56:20 -08:00
Paulus Schoutsen and GitHub
65eefcacfc
Add support for detecting hostname based addresses as internal ( #67407 )
2022-03-01 16:56:05 -08:00
Paulus Schoutsen and GitHub
716a1e2a64
Add camera media source ( #65977 )
2022-02-08 14:32:02 -08:00
Paulus Schoutsen and GitHub
95a890c6e1
Get_url to prefer external URL if SSL configured ( #66039 )
2022-02-07 15:44:02 -08:00
Marc Mueller and GitHub
238b488642
Use assignment expressions 03 ( #57710 )
2021-10-17 20:08:11 +02:00
Franck Nijhof and GitHub
6932cf9534
Use contextlib.suppress where possible ( #48189 )
2021-03-23 14:36:43 +01:00
Marc Mueller and GitHub
6fb2e63e49
Update typing 02 ( #48014 )
2021-03-17 18:34:19 +01:00
Franck Nijhof and GitHub
22389043eb
Remove base_url fallback ( #46316 )
2021-02-10 14:31:11 +01:00
Paulus Schoutsen and GitHub
f9fa24950b
OAuth2 to use current request header ( #43668 )
2020-11-27 08:55:34 +01:00
Paulus Schoutsen and GitHub
560afc31ad
Use internal url for Squeezebox if possible ( #43089 )
2020-11-11 14:49:08 +01:00
Franck Nijhof and GitHub
c64eec3238
Add bare hostname as valid known hostname in get_url helper ( #40510 )
2020-09-26 09:36:03 +02:00
Franck Nijhof and GitHub
101b5b3b35
Accept known hosts for get_url for OAuth ( #39936 )
2020-09-11 13:00:00 +02:00
Ville Skyttä and GitHub
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Franck Nijhof and GitHub
20710d8605
Add current request context to get_url helper ( #38602 )
2020-08-09 14:07:31 +02:00
Franck Nijhof and GitHub
e3e3a113e9
async_get_url -> get_url ( #35382 )
2020-05-08 21:53:28 +02:00
Franck Nijhof and GitHub
e56dd8ed50
Detect use of deprecated base_url ( #35353 )
...
* 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 and GitHub
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02:00
Bas Nijholt and Franck Nijhof
67c56c860d
Sort imports according to PEP8 for 'homeassistant' folder ( #29789 )
...
Components are already done
2019-12-09 16:42:10 +01:00
Paulus Schoutsen and GitHub
5961215e6e
Set up Almond Web to connect to HA ( #28603 )
...
* Set up Almond Web to connect to HA
* Add missing string
* Add type
2019-11-12 11:01:19 -08:00