Abílio Costa and GitHub
dc6269f52d
Add override decorator to remaining homeassistant dir files ( #174488 )
2026-06-22 21:56:03 +02:00
epenet and GitHub
7169d52010
Remove import annotations from core ( #169547 )
2026-04-30 20:34:43 +02:00
57d9e8ea6f
Filter history API responses by per-entity read permissions ( #169236 )
...
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-29 12:16:49 +02:00
b8829b645a
Add labs_updated event to subscription allowlist ( #157552 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: balloob <1444314+balloob@users.noreply.github.com >
2025-12-02 07:35:29 +01:00
Joost Lekkerkerker and GitHub
9f7a38f189
Enable RUF022 ( #135767 )
2025-01-16 13:48:24 +01:00
J. Nick Koston and GitHub
185b6e5908
Allow non-admins to subscribe to newer registry update events ( #123267 )
2024-08-07 09:13:23 +02:00
Marc Mueller and GitHub
87bb7ced79
Use PEP 695 for simple type aliases ( #117633 )
2024-05-17 14:42:21 +02:00
a0e6fd6ec5
Add improved typing for event fire and listen methods ( #114906 )
...
* Add EventType implementation
* Update integrations for EventType
* Change state_changed to EventType
* Fix tests
* Remove runtime impact
* Add tests
* Move to stub file
* Apply pre-commit to stub files
* Fix ruff PYI checks
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-04-07 13:28:24 -10:00
8e98ba7312
Add first batch of Ruff PYI rules ( #115100 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
2024-04-07 11:30:50 -10:00
Joost Lekkerkerker and GitHub
05172d8e4d
Improve loops and lists ( #113269 )
...
* Enable PERF
* Enable PERF rule
* Enable PERF rule
* Don't enable flag yet
2024-03-14 10:22:20 +01:00
Marc Mueller and GitHub
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller and GitHub
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2023-11-27 14:38:59 +01:00
J. Nick Koston and GitHub
1a6184a9aa
Allow non-admins to subscribe to the issue registry updated event ( #103145 )
2023-10-31 16:29:22 -05:00
J. Nick Koston and GitHub
93f10cdce8
Move event permissions out of the websocket api into auth ( #101975 )
2023-10-15 23:14:19 +02:00
Marc Mueller and GitHub
0b2b486754
Update mypy to 1.6.0 ( #101780 )
2023-10-11 13:25:11 +02:00
epenet and GitHub
f2b736fad0
Adjust entity registry access in core platforms ( #88944 )
...
* Adjust entity registry access in platforms
* Adjust more core components
2023-03-01 08:02:16 +01:00
6397138589
Update Optional typing (1) [Py310] ( #86417 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2023-01-23 09:56:10 +01:00
Marc Mueller and GitHub
8abce25948
Update Union typing (4) [Py310] ( #86427 )
2023-01-23 09:04:40 +01:00
Aarni Koskela and GitHub
8038485ca4
Use partition instead of split where possible in core ( #81806 )
2022-11-15 21:45:48 +01:00
Marc Mueller and GitHub
5e633498d2
Enable no_implicit_reexport for core files [mypy] ( #63820 )
2022-01-26 10:55:06 +01:00
Marc Mueller and GitHub
12757a8cd2
Update typing - collections.abc (1) ( #63933 )
...
* Update typing - collections.abc (1)
* Additional typing updates
2022-01-12 07:56:35 +01:00
Marc Mueller and GitHub
d3b7bd25ef
Update typing (1) ( #63922 )
2022-01-11 21:26:03 +01:00
Robert Hillis and GitHub
488a636aec
Clean up unused loggers ( #57662 )
2021-10-14 10:03:38 -07:00
Marc Mueller and GitHub
77ee72cbb9
Import Callable from collections.abc (1) ( #56775 )
2021-09-29 16:32:11 +02:00
Marc Mueller and GitHub
7af67d34cf
Use assignment expressions 01 ( #56394 )
2021-09-18 13:31:35 -10:00
Marc Mueller and GitHub
1dc25a5864
Bump python-typing-update to 0.3.2 ( #48303 )
...
* Bump python-version-update to 0.3.2
* Changes after update
* Fix pylint issues
2021-03-25 21:09:06 +01:00
Marc Mueller and GitHub
fabd73f08b
Update typing 03 ( #48015 )
2021-03-17 21:46:07 +01:00
Ville Skyttä and GitHub
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Ville Skyttä and GitHub
6ae9399237
Upgrade isort to 5.4.2 ( #37939 )
2020-08-29 08:23:55 +02:00
Ville Skyttä and GitHub
1bf2c4d976
Upgrade pylint to 2.6.0 ( #39363 )
2020-08-29 07:59:24 +02:00
Ville Skyttä and GitHub
ac0dbb17af
Attrs cleanups ( #37849 )
2020-07-14 10:30:30 -07: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
Ville Skyttä and Paulus Schoutsen
99c7608fb4
Lint config cleanups ( #28864 )
...
* Remove bunch of unneeded lint exclusions
* Use symbolic names instead of identifiers in pylint disables
* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
Ville Skyttä and Fabian Affolter
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Franck Nijhof and Paulus Schoutsen
2f0eb07624
Migrate legacy typehints in core to PEP-526 ( #26403 )
...
* Migrate legacy typehints in core to PEP-526
* Fix one type
2019-09-03 20:36:04 -07:00
Ville Skyttä and Paulus Schoutsen
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Ville Skyttä and Paulus Schoutsen
17d754dbbf
Optional and Union simplifications ( #25365 )
2019-07-21 10:59:51 -07:00
Paulus Schoutsen and Pascal Vizeli
5b0ee473b6
Add get_states faster ( #23315 )
2019-04-23 12:46:22 +02:00
Paulus Schoutsen and GitHub
4f5446ff02
Add area permission check ( #21835 )
2019-03-11 11:02:37 -07:00
Paulus Schoutsen and GitHub
5b2c6648fb
Add user group ( #21832 )
...
* Add user group
* Rename system group to plural
2019-03-09 20:07:29 -08:00
Paulus Schoutsen
90df932fe1
Check admin permission before able to manage config entries
2018-12-13 16:13:43 +01:00
Paulus Schoutsen and Pascal Vizeli
3928d034a3
Allow checking entity permissions based on devices ( #19007 )
...
* Allow checking entity permissions based on devices
* Fix tests
2018-12-05 11:41:00 +01:00
Ville Skyttä and Paulus Schoutsen
7248c9cb0e
Remove some unused imports ( #18732 )
2018-11-27 09:35:35 +01:00
Paulus Schoutsen and Pascal Vizeli
8b8629a5f4
Add permission checks to Rest API ( #18639 )
...
* Add permission checks to Rest API
* Clean up unnecessary method
* Remove all the tuple stuff from entity check
* Simplify perms
* Correct param name for owner permission
* Hass.io make/update user to be admin
* Types
2018-11-25 18:04:48 +01:00
Paulus Schoutsen and GitHub
f7f0a4e811
System groups ( #18303 )
...
* Add read only and admin policies
* Migrate to 2 system groups
* Add system groups
* Add system groups admin & read only
* Dont' mutate parameters
* Fix types
2018-11-08 12:57:00 +01:00
Paulus Schoutsen and GitHub
f4ac317d64
Permissions improv ( #17811 )
...
* Break up permissions file.
* Granular entity permissions
* Add "all" entity permission
* Lint
* Fix types
2018-10-29 11:28:04 +01:00