epenet
07c7bb8b2a
Use HOMEASSISTANT_DOMAIN alias for core DOMAIN ( #122760 )
2024-07-29 13:35:36 +02:00
G Johansson
f14e8b728c
Remove YAML import from ping ( #120176 )
2024-06-22 20:39:32 +02:00
Jan-Philipp Benecke
b92372c4ca
Partially revert "Add more debug logging to Ping integration" ( #119487 )
2024-06-12 18:08:44 +02:00
Jan-Philipp Benecke
508564ece2
Add more debug logging to Ping integration ( #119318 )
2024-06-10 20:09:39 +02:00
Jan-Philipp Benecke
2c99925286
Use runtime_data in ping ( #118332 )
2024-05-29 08:12:54 +02:00
Marc Mueller
dd22ee3dac
Improve annotation styling ( #118032 )
2024-05-24 15:05:53 +02:00
Sid
6587ee20db
Enable Ruff TRY300 ( #114437 )
...
* Enable Ruff TRY300
* Update validation.py
* Address review comments
2024-03-30 10:37:59 +01:00
Marc Mueller
2c06d4fcb9
Add empty line after module docstring (2) [components] ( #112736 )
2024-03-08 19:15:59 +01:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] ( #112702 )
2024-03-08 15:04:07 +01:00
Jan-Philipp Benecke
911cf60678
Address late review for Ping ( #112123 )
...
* Address late review for Ping
* Fix import
2024-03-03 18:10:22 +01:00
Jan-Philipp Benecke
25551fa938
Move Ping binary sensor attributes to sensor entities ( #112004 )
...
* Move Ping binary sensor attributes to sensor entities
* Process code review
* Update snapshot
2024-03-03 11:08:28 +01:00
Erik Montnemery
e0c1feb22c
Migrate integrations n-r to generic flowhandler ( #111864 )
2024-02-29 20:09:01 +01:00
Marc Mueller
438d3b01b9
Use builtin TimeoutError [o-s] ( #109682 )
2024-02-05 12:14:37 +01:00
Jan-Philipp Benecke
938c32d35e
Avoid triggering ping device tracker home
after restore ( #106913 )
2024-01-03 06:40:42 +01:00
Jan-Philipp Benecke
13504d5fd5
Add consider home interval to ping ( #104881 )
...
* Add consider home interval to ping
* Run ruff after rebase
* Fix buggy consider home interval
2023-12-22 14:50:58 +01:00
Jan-Philipp Benecke
0728106c98
Increase ping update interval to 30 seconds ( #105199 )
2023-12-07 09:50:21 +01:00
Sebastian Nohn
22119a2fd8
Set ping interval to 15 seconds instead of 5 minutes ( #105191 )
...
set ping interval to a more sane value of 15 seconds instead of 5 minutes. fixes home-assistant/core#105163
2023-12-07 07:44:19 +01:00
Jan-Philipp Benecke
dc17780e5b
Remove device from known_devices upon import in ping device tracker ( #105009 )
...
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-12-05 18:52:22 +01:00
c0ffeeca7
450bc8dd2c
Ping to Qnap: add host field description ( #104859 )
2023-12-01 12:18:34 +01:00
Jan-Philipp Benecke
a9a95ad881
Revert "Introduce base entity for ping" ( #104682 )
2023-11-29 08:42:02 +01:00
Jan-Philipp Benecke
6f54aaf564
Introduce base entity for ping ( #104197 )
2023-11-24 11:20:34 +01:00
Jan-Philipp Benecke
dfff22b5ce
Add update coordinator to ping ( #104148 )
...
* Add update coordinator to ping
* Remove config_entry from coordinator
* Remove PARALLEL_UPDATES and set to hass.data
2023-11-18 17:07:58 +01:00
Jan-Philipp Benecke
e5bc25523e
Add config flow for Ping ( #103743 )
2023-11-17 13:30:30 -06:00
Jan-Philipp Benecke
f0a455e5c7
Update icmplib privilege detection function to be async in ping integration ( #103925 )
...
* Make icmplib privilege detection function async
* I should also commit the tests..
2023-11-13 19:37:58 +01:00
Jan-Philipp Benecke
62d8472757
Move ping classes to their own module ( #102448 )
2023-10-21 22:12:59 -10:00
Jan-Philipp Benecke
3c455391c2
Use dataclass to carry data in ping ( #99803 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-20 11:46:33 -10:00
Erik Montnemery
dff18b4a16
Rename gather_with_concurrency
to gather_with_limited_concurrency
( #102241 )
...
* Rename gather_with_concurrency to gather_with_limited_concurrency
* Update test
2023-10-19 15:08:52 +02:00
Marc Mueller
063ce9159d
Use asyncio.timeout [o-s] ( #98451 )
2023-08-15 17:21:49 +02:00
Joost Lekkerkerker
b367c95c81
Add more common translations ( #96429 )
...
* Add common translations
* Add common translations
* Add common translations
* Add common translations
* Add common translations
* Add common translations
* Add common translations
* Add common translations
2023-07-12 22:00:05 -04:00
Franck Nijhof
90d839724c
Migrate integration services (N-P) to support translations ( #96376 )
2023-07-12 00:33:37 +02:00
G Johansson
67586caaf9
Cleanup ping ( #95168 )
2023-06-25 09:00:52 -05:00
Erik Montnemery
f9037d5f6d
Add platform only config schema to nsw_fuel_station and ping ( #93913 )
2023-06-01 17:30:15 +02:00
Erik Montnemery
25b5ad7de4
Fix typo in ping ( #93701 )
2023-05-28 10:11:46 -05:00
epenet
753c790a25
Use async_timeout in integrations ( #88697 )
2023-02-24 08:13:03 -05:00
J. Nick Koston
03eea7bd3f
Avoid subprocess memory copy when c library supports posix_spawn ( #87958 )
...
* use posix spawn on alpine
* Avoid subprocess memory copy when c library supports posix_spawn
By default python 3.10 will use the fork() which has to
copy all the memory of the parent process (in our case
this can be huge since Home Assistant core can use
hundreds of megabytes of RAM). By using posix_spawn
this is avoided.
In python 3.11 vfork will also be available
https://github.com/python/cpython/issues/80004#issuecomment-1093810689
https://github.com/python/cpython/pull/11671 but we won't
always be able to use it and posix_spawn is considered safer
https://bugzilla.kernel.org/show_bug.cgi?id=215813#c14
The subprocess library doesn't know about musl though
even though it supports posix_spawn https://git.musl-libc.org/cgit/musl/log/src/process/posix_spawn.c
so we have to teach it since it only has checks for glibc
1b736838e6/Lib/subprocess.py (L745)
The constant is documented as being able to be flipped here:
https://docs.python.org/3/library/subprocess.html#disabling-use-of-vfork-or-posix-spawn
* Avoid subprocess memory copy when c library supports posix_spawn
By default python 3.10 will use the fork() which has to
copy memory of the parent process (in our case
this can be huge since Home Assistant core can use
hundreds of megabytes of RAM). By using posix_spawn
this is avoided and subprocess creation does not
get discernibly slow the larger the Home Assistant
python process grows.
In python 3.11 vfork will also be available
https://github.com/python/cpython/issues/80004#issuecomment-1093810689
https://github.com/python/cpython/pull/11671 but we won't
always be able to use it and posix_spawn is considered safer
https://bugzilla.kernel.org/show_bug.cgi?id=215813#c14
The subprocess library doesn't know about musl though
even though it supports posix_spawn https://git.musl-libc.org/cgit/musl/log/src/process/posix_spawn.c
so we have to teach it since it only has checks for glibc
1b736838e6/Lib/subprocess.py (L745)
The constant is documented as being able to be flipped here:
https://docs.python.org/3/library/subprocess.html#disabling-use-of-vfork-or-posix-spawn
* missed some
* adjust more tests
* coverage
2023-02-13 09:02:51 -05:00
Erik Montnemery
1450b44c63
Sort manifests 7 ( #87028 )
2023-02-08 20:32:43 +01:00
epenet
275438adf3
Improve typing in ping binary sensor ( #87073 )
2023-02-02 16:31:09 -05:00
Marc Mueller
6d336ec136
Remove unnecessary try-else (5) ( #86164 )
2023-01-18 14:10:13 +01:00
epenet
9205020fa4
Avoid import homeassistant.const as a module ( #85991 )
2023-01-16 16:49:49 +01:00
Franck Nijhof
94755a5773
String formatting and max line length - Part 4 ( #84445 )
...
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 13:27:27 +01:00
epenet
b5402f9b57
Import device tracker constants from root ( #78242 )
2022-09-12 20:50:44 -04:00
epenet
474844744b
Improve entity type hints [p] ( #77871 )
2022-09-06 09:51:33 +02:00
epenet
4a84a8caa9
Use Platform enum ( #76967 )
2022-08-18 10:22:49 +02:00
Marc Mueller
450b7cd644
Use device_tracker SourceType enum [n-r] ( #75965 )
2022-07-31 15:48:43 +02:00
Marc Mueller
003fe9220e
Add protocol types for device_tracker async_see
and see
( #75891 )
2022-07-29 00:27:47 +02:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json ( #65083 )
2022-01-28 13:37:53 -08:00
Joakim Sørensen
b086c8d898
Set ping data to None instead of False ( #65013 )
2022-01-27 10:03:45 +01:00
epenet
211b99e22d
Remove ping from mypy ignored modules ( #64439 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-19 20:59:20 +01:00
Erik Montnemery
0fa4f616ed
Remove Windows workarounds from ping ( #64069 )
2022-01-13 20:43:00 +01:00
epenet
0ac9b62f97
Fix incorrect type hint in async_setup_scanner ( #63833 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-10 22:47:24 +01:00