Commit graph

38 commits

Author SHA1 Message Date
J. Nick Koston
fba7c6cacd
Remove deprecated async_get_registry ()
Deprecated in 2021 via , report was added a year ago in 
2023-04-23 23:02:21 -04:00
Marc Mueller
b2bcdf7c19
Update mypy to 1.2.0 ()
* Update mypy to 1.2.0

* Add type ignore
2023-04-06 12:51:16 -04:00
Franck Nijhof
d4f69a3652
String formatting and max line length - Part 7 ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-27 11:18:56 +01:00
Erik Montnemery
1a42bd5c4c
Add aliases to area registry items ()
* Add aliases to area registry items

* Update test

* Fix WS API
2022-12-21 08:44:44 +01:00
Erik Montnemery
fd9124279b
Add minor version to area registry store () 2022-12-20 11:41:35 +01:00
epenet
16900dcef1
Make Store a generic class () 2022-07-09 22:32:57 +02:00
epenet
99941b1c32
Warn on use of deprecated async_get_registry ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-18 12:04:06 -07:00
Franck Nijhof
5f44d0f8f9
Clean up accessing storage.Store helper via hass () 2022-05-17 18:45:57 +02:00
Franck Nijhof
287edf9ac0
Fix area name unchanged gets written () 2022-04-11 00:03:01 +03:00
Marc Mueller
240c9979c7
Move disallow-any-generics to mypy.ini () 2022-01-11 13:33:25 -08:00
Ruslan Sayfutdinov
55f4962c06
Fix pylint plugin which checks relative imports () 2021-12-23 11:14:47 -08:00
J. Nick Koston
96f7b0d910
Use atomicwrites for mission critical core files () 2021-11-15 11:19:31 +01:00
Marc Mueller
3f1b4906bf
Use assignment expressions 35 () 2021-10-31 18:32:17 +01:00
Paulus Schoutsen
6cd83d1f66
Allow storing picture in area registry () 2021-10-27 10:11:05 -07:00
Marc Mueller
c07646db5d
Update typing syntax ()
* Update typing syntax

* Replace typing imports with ones from collections where possible

* Changes after review
2021-04-20 17:40:41 +02:00
Franck Nijhof
38d14702fa
Remove HomeAssistantType alias from helpers () 2021-03-27 12:55:24 +01:00
Franck Nijhof
45f77ccccf
Merge of nested IF-IF cases - Core () 2021-03-27 09:23:32 +01:00
Marc Mueller
6fb2e63e49
Update typing 02 () 2021-03-17 18:34:19 +01:00
J. Nick Koston
bb7e4d7daa
Implement suggested_area in the device registry ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-19 19:34:33 -10:00
Erik Montnemery
f1714dd541
Make some Area and EntityRegistry member functions callbacks () 2021-02-12 17:00:35 +01:00
Erik Montnemery
ed31cc363b
Wait for registries to load at startup ()
* Wait for registries to load at startup

* Don't decorate new functions with @bind_hass

* Fix typing errors in zwave_js

* Load registries in async_test_home_assistant

* Tweak

* Typo

* Tweak

* Explicitly silence mypy errors

* Fix tests

* Fix more tests

* Fix test

* Improve docstring

* Wait for registries to load
2021-02-11 17:36:19 +01:00
Ville Skyttä
82607977ef
Various type hint improvements () 2021-02-08 11:59:46 +01:00
Paulus Schoutsen
69710cb664
Base area IDs on initial name () 2020-12-01 12:45:56 +01:00
Robert Svensson
e06c8009e1
Add area id to entity registry ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-24 21:25:28 +02:00
Philip Allgaier
dde6305549
Cleanup unused loggers (components N-Z + tests) () 2020-10-16 21:24:08 -05:00
J. Nick Koston
8d5c124deb
Improve performance of generating non-cryptographically secure uuids () 2020-10-07 16:37:01 +02:00
J. Nick Koston
bee6d87e7a
Standardize uuid generation for events/storage/registry () 2020-08-24 17:21:30 +02:00
Ville Skyttä
aa1c5fc43d
Various type hint improvements () 2020-07-22 08:06:37 -07:00
Ville Skyttä
ac0dbb17af
Attrs cleanups () 2020-07-14 10:30:30 -07:00
Bas Nijholt
67c56c860d Sort imports according to PEP8 for 'homeassistant' folder ()
Components are already done
2019-12-09 16:42:10 +01:00
Franck Nijhof
2f0eb07624 Migrate legacy typehints in core to PEP-526 ()
* Migrate legacy typehints in core to PEP-526

* Fix one type
2019-09-03 20:36:04 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
07ee3b2eb9
Add update events to registries ()
* Add update events to registries

* Add to websocket
2019-05-07 20:04:57 -07:00
Penny Wood
646c4a7137
Bootstrap to start registry loading early ()
* Registries store directly in data on loading.

* Loading registries concurent with stage 1.

* Removed comments
2019-03-27 22:06:20 +08:00
Paulus Schoutsen
8213016eaf
Allow targeting areas in service calls ()
* Allow targeting areas in service calls

* Lint + Type

* Address comments
2019-03-04 09:51:12 -08:00
Daniel Høyer Iversen
519315f9c8 pylint 2.3.0 ()
* pylint 2.3.0

* remove const

*  disable=syntax-error
2019-02-27 16:10:40 -05:00
Ville Skyttä
d45f25ce2c Add more type hints to helpers ()
* Add type hints to helpers.aiohttp_client

* Add type hints to helpers.area_registry
2019-02-07 13:34:14 -08:00
Robert Svensson
bd335e1ac1 Area registry ()
* First draft of area registry

* Refactor based on input

* Add tests for areas
Add tests for updating device

* Updating a device shouldn't require area

* Fix Martins comment

* Require admin

* Save after deleting

* Rename read to list_areas
Fix device entry_dict
Remove area id from device when deleting area

* Fix tests
2019-01-28 15:52:42 -08:00