ehendrix23
ba6a81c565
Resolve traceback error when using variables in template triggers ( #77287 )
...
Co-authored-by: Erik <erik@montnemery.com>
2022-09-29 13:26:28 -04:00
Rami Mosleh
e7764b8bf1
Add ConfigEntry template function ( #78030 )
...
* Add ConfigEntry template function
* Remove looking up entry_id by entry title
2022-09-29 12:41:59 +02:00
Raman Gupta
3884b4b6bf
Bump zwave-js-server-python to 0.42.0 ( #79020 )
2022-09-28 21:24:04 -04:00
epenet
24c26dc032
Use unit_conversion in components ( #79204 )
...
* Use unit_conversion in components
* Two more
2022-09-28 16:05:31 +02:00
Erik Montnemery
c38b1e7727
Improve check of new_entity_id in entity_registry.async_update_entity ( #78276 )
...
* Improve check of new_entity_id in entity_registry.async_update_entity
* Fix race in rfxtrx config flow
* Make sure Event is created on time
* Rename poorly named variable
* Fix typing
* Correct typing of _handle_state_change
2022-09-28 08:43:58 +02:00
Erik Montnemery
7ead77eea6
Correct typing of async_track_state_change ( #79150 )
...
* Correct typing of async_track_state_change
* Update integrations
2022-09-27 16:32:54 +01:00
Erik Montnemery
53263ea9bc
Revert "Add serial_number to device registry entries" ( #79139 )
2022-09-27 16:36:38 +02:00
Erik Montnemery
cba3b6ad94
Add serial_number to device registry entries ( #77713 )
2022-09-27 09:08:54 +02:00
Marc Mueller
faad904cbc
Remove unnecessary boolean checks for callables ( #78819 )
2022-09-25 22:01:27 -04:00
epenet
6002377d4f
Convert UnitConverter protocol to a class ( #78934 )
...
* Convert UnitConverter protocl to a class
* Remove logic change
* Use TypeVar
* Remove NORMALIZED_UNIT from pressure
* Reduce size of PR
* Reduce some more
* Once more
* Once more
* Remove DEVICE_CLASS
2022-09-22 14:15:22 +02:00
epenet
713fb874a8
Add NORMALISED_UNIT to UnitConverter ( #78920 )
...
* Add NORMALISED_UNIT to UnitConverter
* Adjust statistics
* Rename
2022-09-22 08:50:08 +02:00
epenet
39315b7fe3
Introduce UnitConverter protocol ( #78888 )
...
* Introduce ConversionUtility
* Use ConversionUtility in number
* Use ConversionUtility in sensor
* Use ConversionUtility in sensor recorder
* Add normalise to ConversionUtility
* Revert changes to recorder.py
* Reduce size of PR
* Adjust recorder statistics
* Rename variable
* Rename
* Apply suggestion
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Apply suggestion
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Apply suggestion
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-09-22 07:18:00 +02:00
J. Nick Koston
8dbbd0ded0
Cache template regex compiles ( #78529 )
2022-09-18 11:48:04 +02:00
epenet
8300f8234c
Make async_extract_entities generic ( #78490 )
2022-09-16 00:20:47 +02:00
Joakim Sørensen
8dbe293ae2
Add version to templates ( #78484 )
2022-09-15 15:01:40 +02:00
epenet
0a13fe99d2
Move mypy override for device_registry ( #78493 )
2022-09-15 11:00:25 +02:00
Erik Montnemery
84a812ad05
Allow setting number selector step size to 'any' ( #78265 )
...
* Allow setting number selector step size to 'any'
* Improve test coverage
2022-09-15 08:29:46 +02:00
epenet
996bcbdac6
Make EntityComponent generic ( #78473 )
2022-09-14 14:16:23 -04:00
epenet
d3be06906b
Improve type hints in script helpers ( #78364 )
...
* Improve type hints in script helpers
* Import CONF_SERVICE_DATA from homeassistant.const
* Make data optional
2022-09-13 23:11:29 +02:00
Erik Montnemery
4e32bf2ac9
Drop old migration code from entity registry ( #78278 )
2022-09-12 22:28:05 -04:00
Erik Montnemery
e332091d76
Improve unique_id collision checks in entity_platform ( #78132 )
2022-09-09 14:35:23 +02:00
J. Nick Koston
363f95c954
Remove auto lowercasing from async_track_entity_registry_updated_event ( #77740 )
2022-09-05 12:13:05 +02:00
Erik Montnemery
b0d033ef29
Add mixin class CollectionEntity for the collection helper ( #77703 )
...
* Add mixin class CollectionEntity for the collection helper
* Improve typing
* Address review comments
* Fix tests
2022-09-03 12:56:49 +02:00
Erik Montnemery
56278a4421
Simplify device registry ( #77715 )
...
* Simplify device registry
* Fix test fixture
* Update homeassistant/helpers/device_registry.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update device_registry.py
* Remove dead code
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-09-03 12:50:55 +02:00
Erik Montnemery
3a86209dec
Remove unnecessary use of dunder methods from entity registry ( #77716 )
2022-09-02 17:02:14 +00:00
Erik Montnemery
1bc8770b51
Remove area_id from entity_registry.async_get_or_create ( #77700 )
...
* Remove area_id from entity_registry.async_get_or_create
* Adjust tests
* Fix lying comment in test
2022-09-02 13:31:05 +02:00
Erik Montnemery
8924725d69
Improve some device registry tests ( #77659 )
2022-09-02 08:54:02 +02:00
Erik Montnemery
cd2045b66d
Clean up user overridden device class in entity registry ( #77662 )
2022-09-01 11:45:19 -04:00
Erik Montnemery
4655ed995e
Fix resetting of attributes in EntityRegistry.async_get_or_create ( #77516 )
...
* Fix resetting of attributes in EntityRegistry.async_get_or_create
* Fix typing
* Fix resetting config entry
* Improve test
* Update tests
2022-08-30 21:07:50 +02:00
Paulus Schoutsen
14f68ec1a9
Store redirect URI in context instead of asking each time ( #77380 )
...
* Store redirect URI in context instead of asking each time
* Fix tests
2022-08-29 19:28:42 -04:00
J. Nick Koston
4333d9a7d1
Fix recorder being imported before deps are installed ( #77460 )
2022-08-28 22:18:35 -05:00
Marc Mueller
1210897f83
Update pylint to 2.15.0 ( #77408 )
...
* Update pylint to 2.15.0
* Remove useless suppressions
* Fix TypeVar name
2022-08-28 21:14:09 +02:00
Joakim Sørensen
0caf998547
Bump awesomeversion from 22.6.0 to 22.8.0 ( #77436 )
2022-08-28 14:52:23 -04:00
Franck Nijhof
dfc3e7d80f
Don't expose attribute option in state selector ( #77347 )
2022-08-26 11:51:36 +02:00
Erik Montnemery
dfed3ba75e
Move issue_registry to homeassistant.helpers ( #77299 )
...
* Move issue_registry to homeassistant.helpers
* Add backwards compatibility
2022-08-25 11:32:06 +02:00
Franck Nijhof
4d02cccd11
Fix typing of ConfigEntrySelector ( #77259 )
2022-08-24 15:15:29 +02:00
Franck Nijhof
dc17bca00c
Add config entry selector ( #77108 )
2022-08-24 00:29:30 +02:00
Franck Nijhof
9843753f30
Add alias support to all triggers ( #77184 )
2022-08-22 17:43:09 -04:00
Franck Nijhof
5a0e4fa5ee
Add hide attribute support to attribute selector ( #77072 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-08-22 12:55:30 +02:00
Franck Nijhof
453307e01a
Add attribute support to state selector ( #77071 )
2022-08-20 13:30:38 -04:00
Franck Nijhof
2d197fd59e
Add state selector ( #77024 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-08-19 09:24:53 -04:00
Paulus Schoutsen
6e92931087
Add file selector and file upload integration ( #76672 )
2022-08-18 12:02:12 -04:00
Marc Mueller
c93d9d9a90
Move `AutomationActionType` to helpers.trigger ( #76790 )
2022-08-15 08:37:11 -04:00
Paulus Schoutsen
2f29f38ec6
Streamline discovery flow callback ( #76666 )
2022-08-12 16:42:41 -07:00
Franck Nijhof
a30dfd9f3e
Add class attribute for capability attributes in entity base class ( #76599 )
2022-08-11 10:34:58 +02:00
Marc Mueller
dc47121f2c
Better type hass_job method calls ( #76053 )
2022-08-09 16:12:33 -04:00
J. Nick Koston
80a9659524
Update to bleak 0.15 ( #75941 )
2022-07-29 17:53:33 -07:00
Marc Mueller
af7df260a0
Fix small type issues [core] ( #75760 )
2022-07-26 16:28:22 +02:00
J. Nick Koston
8300d5b89e
Add bluetooth connection constant to the device registry ( #75666 )
2022-07-23 19:59:35 +02:00
Erik Montnemery
fd6ffef52f
Support non-live database migration ( #72433 )
...
* Support non-live database migration
* Tweak startup order, add test
* Address review comments
* Fix typo
* Clarify comment about promoting dependencies
* Tweak
* Fix merge mistake
* Fix some tests
* Fix additional test
* Fix additional test
* Adjust tests
* Improve test coverage
2022-07-22 15:11:34 +02:00