G Johansson
bf0cf1c30f
Set single_config_entry in System monitor manifest ( #134838 )
2025-01-05 22:17:08 -05:00
G Johansson
2288f89415
Fix duplicate sensor disk entities in Systemmonitor ( #134139 )
2024-12-30 13:38:48 +01:00
Erik Montnemery
ecb3bf79f3
Revert "Add support for subentries to config entries" ( #133470 )
...
Revert "Add support for subentries to config entries (#117355 )"
This reverts commit ad15786115
.
2024-12-18 13:51:05 +01:00
Erik Montnemery
ad15786115
Add support for subentries to config entries ( #117355 )
...
* Add support for subentries to config entries
* Improve error handling and test coverage
* Include subentry_id in subentry containers
* Auto-generate subentry_id and add optional unique_id
* Tweak
* Update tests
* Fix stale docstring
* Address review comments
* Typing tweaks
* Add methods to ConfigEntries to add and remove subentry
* Improve ConfigSubentryData typed dict
* Update test snapshots
* Adjust tests
* Fix unique_id logic
* Allow multiple subentries with None unique_id
* Add number of subentries to config entry JSON representation
* Add subentry translation support
* Allow integrations to implement multiple subentry flows
* Update translations schema
* Adjust exception text
* Change subentry flow init step to user
* Prevent creating a subentry with colliding unique_id
* Update tests
* Address review comments
* Remove duplicaetd unique_id collision check
* Remove change from the future
* Improve test coverage
* Add default value for unique_id
2024-12-12 20:16:18 +01:00
epenet
906cecf087
Cleanup unused snapshots ( #128549 )
...
* Cleanup unused snapshots
* Cleanup a few more
* Cleanup systemmonitor
* Cleanup voip
2024-10-17 10:41:57 +02:00
G Johansson
6f45e376da
Don't error with missing information in systemmonitor diagnostics ( #127868 )
2024-10-09 10:44:54 +02:00
Erik Montnemery
d82bff1bc2
Index config entry discovery_keys by discovery domain ( #126563 )
...
* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 21:48:11 +02:00
Erik Montnemery
b2982c18bb
Reinitialize zeroconf discovery flow on unignore ( #125753 )
...
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 16:49:21 +02:00
G Johansson
6343a086e4
Remove deprecated process sensor from System monitor ( #123616 )
2024-08-12 09:08:40 +02:00
Robert Resch
ad50136dbd
Add created_at/modified_at to config entries ( #122456 )
2024-07-29 22:08:46 +02:00
G Johansson
98370fd9a0
Bump psutil to 6.0.0 ( #121385 )
2024-07-06 19:09:00 +02:00
Marc Mueller
f11b316dac
Import Generator from collections.abc (4) ( #120917 )
2024-07-01 11:54:42 +02:00
G Johansson
75b0acf6b6
Remove YAML import from System monitor ( #119782 )
2024-06-17 09:52:25 +02:00
Marc Mueller
837ee7c4fb
Import Generator from typing_extensions (4) ( #118992 )
2024-06-06 17:41:37 +02:00
epenet
20b5aa3e0e
Move entity_registry_enabled_by_default to decorator [q-z] ( #118793 )
2024-06-04 13:38:32 +02:00
epenet
9204ccfa17
Use is in ConfigEntryState enum comparison in tests (N-Z) ( #114926 )
2024-04-05 17:37:00 +02:00
epenet
24f83c5890
Use is in FlowResultType enum comparison in tests ( #114917 )
...
* Use is in FlowResultType enum comparison in tests
* Adjust auth
* Adjust systemmonitor
* Once more
* Add comment
2024-04-05 10:40:14 +02:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
J. Nick Koston
9a79320861
Mark executor jobs as background unless created from a tracked task ( #114450 )
...
* Mark executor jobs as background unless created from a tracked task
If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.
Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown
* import exec has the same issue
* Avoid tracking import executor jobs
There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs
* fix xiaomi_miio
* lots of fire time changed without background await
* revert changes moved to other PR
* more
* more
* more
* m
* m
* p
* fix fire and forget tests
* scrape
* sonos
* system
* more
* capture callback before block
* coverage
* more
* more races
* more races
* more
* missed some
* more fixes
* missed some more
* fix
* remove unneeded
* one more race
* two
2024-03-30 00:16:53 -04:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
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
G Johansson
7b0abb00aa
Show correct ipv6 address in System Monitor ( #114024 )
2024-03-23 11:24:17 +01:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
Joost Lekkerkerker
0b4fafddbc
Add icon translations to Systemmonitor ( #112300 )
...
* Add icon translations to Systemmonitor
* Add icon translations to Systemmonitor
2024-03-05 11:52:50 +01:00
G Johansson
cdd7b94a95
Move all System Monitor updates into single Data Update Coordinator ( #112055 )
2024-03-03 07:24:04 -10:00
J. Nick Koston
01a6b85a35
Avoid creating system monitor disk sensors for non-dirs ( #111695 )
...
Avoid creating system monitor sensors for non-dirs
Currently we create sensors for /etc/hosts, /etc/asound.conf, since
they are bind mounts in the container. These all have to have
their own coordinator
2024-02-28 09:31:02 +01:00
G Johansson
c45cae3665
Remove obsolete entities from System Monitor automatically ( #111231 )
...
* Remove obsolete entities from System Monitor automatically
* callback
2024-02-24 20:50:53 +01:00
G Johansson
777428c36d
Add diagnostics to System Monitor ( #111291 )
...
* Add diagnostics to System Monitor
* Fix
2024-02-24 20:11:11 +01:00
G Johansson
9e46c2e2b3
Isolate systemmonitor from psutil shared state ( #111110 )
...
* Isolate systemmonitor from psutil shared state
* Mods
* typing
* Fix tests
* Fix read temp issue
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-23 20:53:48 +01:00
G Johansson
7ce1ba9304
Fix cpu percentage in System Monitor ( #110268 )
...
* Fix cpu percentage in System Monitor
* Tests
2024-02-11 21:11:31 +01:00
G Johansson
1706156faf
Add Process binary sensor in System Monitor ( #108585 )
...
* Process binary sensor in System Monitor
* Add repair flow
* add issue
* add platform
* fix repair
* Tests
* Fix tests
* add minor version
* migrate
* Mod repairs
* Fix tests
* config flow test
* Last fixes
* Review comments
* Remove entities during repair
* Remove snapshot
2024-02-06 02:09:05 +01:00
G Johansson
d4f9ad9dd3
Create update coordinator for Systemmonitor ( #106693 )
2024-01-16 15:07:55 -10:00
G Johansson
0ba0f57439
Add entity name translations to System Monitor ( #107952 )
2024-01-16 21:39:03 +01:00
G Johansson
3bc20a072a
Fix test_sensor_process_fails test in System Monitor ( #108110 )
2024-01-15 19:46:28 +01:00
G Johansson
5b3e1306f8
Add tests for System Monitor ( #107891 )
...
* Add tests
* no coordinator
* Coverage
* processes
* test init
* util
* test icon
* Add tests
* Mod tests
* Add tests
* Test attributes
* snapshots
* icon
* test disk mounts
* fixes
* svmem
* cache_clear
* test icon
* reset icon test
* test_processor_temperature
* fix tests on macos
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-15 18:26:49 +01:00
G Johansson
4f0ee20ec5
Add config flow to System Monitor ( #104906 )
...
* Initial commit for config flow to System Monitor
* sensors
* Fixes
* Works
* Add import
* entity_registry_enabled_default = False
* entity_category = diagnostic
* Create issue
* issue in config flow
* Tests
* test requirement
* codeowner
* Fix names
* processes
* Fix type
* reviews
* get info during startup once
* Select process
* Legacy import of resources
* requirements
* Allow custom
* Fix tests
* strings
* strings
* Always enable process sensors
* Fix docstrings
* skip remove sensors if no sensors
* Modify sensors
* Fix tests
2023-12-26 18:29:32 +01:00