Commit graph

94 commits

Author SHA1 Message Date
Marc Mueller
e382f924e6
Add support for Python 3.13 (#129442) 2024-11-10 11:38:56 +01:00
Michael
8236a9529f
Mark integrations as single_config_entry in manifest [k-r] (#128191)
* mark integrations as single_config_entry in manifest

* fix owntracks test
2024-10-12 09:03:17 +02:00
Erik Montnemery
1a2d013c97
Update icons.json to new service schema part 3 (#124770) 2024-08-28 13:48:01 +02:00
epenet
913e5404da
Improve config flow type hints (part 1) (#124343)
* Improve config flow type hints

* Revert sms
2024-08-21 22:42:58 +02:00
Marc Mueller
ca55986057
Import Generator from collections.abc (1) (#120914) 2024-07-01 11:51:51 +02:00
Marc Mueller
fe21e2b8ba
Import Generator from typing_extensions (1) (#118986) 2024-06-06 17:02:13 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
J. Nick Koston
8bfcaf3524
Add service to log all the current asyncio Tasks to the profiler (#116389)
* Add service to log all the current asyncio Tasks to the profiler

I have been helping users look for a task leaks, and need a
way to examine tasks at run time as trying to get someone to
run Home Assistant and attach aiomonitor is too difficult in
many cases.

* cover
2024-04-29 10:03:35 -05:00
J. Nick Koston
af06e03b71
Add profiler set_asyncio_debug service (#113447)
* Add profiler set_asyncio_debug service

Currently when a user has a problem with there event loop being blocked
the simplest way to enable asyncio debug is to add `debugpy:` to
`configuration.yaml`, however this approach slows the system which
makes the report less useful and harder to track down the problem.

We need a lightweight way to enable debug mode so users can report
problems with the event loop being blocked, and we have a better
chance of finding the source without side effects

* logging

* logging

* logging

* comments

* fix

* icon

* only if enabled

* coverage
2024-03-15 20:49:35 -04: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
Joost Lekkerkerker
ab06f54544
Add icon translations to Profiler (#112186) 2024-03-05 08:43:10 +01:00
Erik Montnemery
e0c1feb22c
Migrate integrations n-r to generic flowhandler (#111864) 2024-02-29 20:09:01 +01:00
Marc Mueller
eb370d7213
Update guppy3 to 3.1.4.post1 (#111430) 2024-02-25 15:00:51 -10:00
J. Nick Koston
93a76ab519
Fix profiler.lru_stats always throwing an exception (#111249)
Remove IntegrationMatcher as its now a slotted class and cannot
be examined with the current methods (we also likely do not need
to optimize it anymore)

```
  File "/usr/src/homeassistant/homeassistant/components/profiler/__init__.py", line 201, in _lru_stats
    for maybe_lru in class_with_lru_attr.__dict__.values():
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'IntegrationMatcher' object has no attribute '__dict__'. Did you mean: '__dir__'?
```
2024-02-24 16:26:01 -05:00
J. Nick Koston
5c503683b7
Bump lru-dict to 1.3.0 (#105914)
* Bump lru-dict to 1.3.0

changelog: https://github.com/amitdev/lru-dict/compare/v1.2.0...v1.3.0

* fix typing

* quote types

* quote types
2023-12-18 00:16:31 +01:00
Franck Nijhof
5ff6779f5c
Update guppy3 to 3.1.4 (#102400) 2023-10-20 20:20:17 +02:00
Marc Mueller
ba91aaa28d
Add support for Python 3.12 (#101651) 2023-10-10 21:34:49 +02:00
J. Nick Koston
e9c3f0821f
Fix dumping lru stats in the profiler (#97303) 2023-07-27 09:17:27 +02:00
J. Nick Koston
c067c52cf4
Fix translation key in profiler integration (#96979) 2023-07-20 21:40:38 -05:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04: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
J. Nick Koston
9c039a17ea
Bump guppy3 to 3.1.3 (#93124) 2023-05-16 08:26:17 +02:00
J. Nick Koston
4c767b2f72
Generate a seperate log message per dumped object for profiler.dump_log_objects (#90867)
Since some objects are very large we can generate overly large log messages
```
Event data for system_log_event exceed maximum size of 32768 bytes. This can cause database performance issues; Event data will not be stored
```

Reported in 1093069996
2023-04-05 20:53:19 -04:00
J. Nick Koston
51ff027fce
Add object source logger to profiler (#90650)
* Add object source logger to profiler

* fixes

* cleanup

* tweaks

* logging

* logging

* too intensive

* adjust

* Update homeassistant/bootstrap.py

* fixes

* fixes

* coverage
2023-04-02 20:54:21 -04:00
J. Nick Koston
9dc936f8b9
Add sqlalchemy LRUs to the profiler lru service (#90428) 2023-03-28 12:02:35 -10:00
J. Nick Koston
dc37d92197
Add lru stats to the profiler integration (#90388) 2023-03-28 08:34:56 +02:00
J. Nick Koston
61539686a4
Disable profiler.memory service with python 3.11 (#88136) 2023-02-15 16:20:47 +01:00
Erik Montnemery
1450b44c63
Sort manifests 7 (#87028) 2023-02-08 20:32:43 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action
77f9548e51 [ci skip] Translation update 2023-01-15 00:25:52 +00: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
GitHub Action
cfa08c5229 [ci skip] Translation update 2022-12-15 00:24:38 +00:00
GitHub Action
b9753a9f92 [ci skip] Translation update 2022-12-13 00:27:47 +00:00
GitHub Action
f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
GitHub Action
230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
GitHub Action
b65d8cc1b3 [ci skip] Translation update 2022-11-28 00:23:09 +00:00
GitHub Action
6e03b12a93 [ci skip] Translation update 2022-08-13 00:25:00 +00:00
GitHub Action
32a2999b85 [ci skip] Translation update 2022-08-06 00:24:46 +00:00
GitHub Action
a3fd5acf3f [ci skip] Translation update 2022-07-13 00:27:34 +00:00
epenet
ba18e11308
Remove profiler from mypy ignore list (#74453) 2022-07-11 18:34:27 +02:00
GitHub Action
ceb8bb4745 [ci skip] Translation update 2022-05-21 00:22:49 +00:00
J. Nick Koston
a9a5645255
Defer profiler imports until needed to reduce memory pressure (#70202) 2022-04-17 20:16:25 -10:00
epenet
ecd43f391f
Prettify json (manifest.json) (#68886) 2022-03-30 10:56:37 +02:00
J. Nick Koston
b9f172899e
Bump objgraph to 3.5.0 to fix stall in profiler tests (#68690) 2022-03-26 11:59:28 +01:00
GitHub Action
66d757115c [ci skip] Translation update 2022-03-11 00:21:48 +00:00
J. Nick Koston
bfe94f1cc5
Fix profiler dumping object when repr fails (#67674)
* Fix profiler dumping object when repr fails

* cover
2022-03-08 10:33:08 +01:00
Franck Nijhof
5965b015dd
Adjust data entry flow to have an option data_schema (#67637) 2022-03-04 16:42:02 +01:00