Marc Mueller
42008c50f3
Enable error-code `truthy-iterable` [mypy 1.0] ( #87596 )
2023-02-07 11:16:22 +01:00
Marc Mueller
ea4e2ab4aa
Add Self typing (4) [mypy 1.0] ( #87601 )
2023-02-06 22:30:22 -06:00
Marc Mueller
342b406dc0
Add Self typing (1) [mypy 1.0] ( #87598 )
2023-02-06 22:29:47 -06:00
Paulus Schoutsen
a090652560
Use correct state in Entity repr and output similar value to State class ( #87519 )
...
* Use correct state in Entity repr
* Test Entity.__repr__
* Align with State class
2023-02-06 13:35:36 -05:00
krahabb
899342d391
Refactor async_call_later to improve performance and reduce conversion loss ( #87117 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-05 12:04:38 -06:00
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks ( #87344 )
2023-02-03 23:51:27 +01:00
Erik Montnemery
4d4fb2477d
Optionally update sensor units when unit system is changed ( #83851 )
2023-02-03 16:30:50 +01:00
epenet
810367b757
Fix `can not` typo ( #87254 )
2023-02-03 11:37:16 +01:00
Franck Nijhof
b8a1f87073
Fix schema typing on async_register_entity_service ( #87250 )
2023-02-03 11:25:02 +01:00
Karlie Meads
e40a9822f5
Fix disabled condition within an automation action ( #87213 )
...
fixes undefined
2023-02-02 22:35:02 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Marc Mueller
07a3046d11
Update pylint to 2.16.0 ( #87083 )
2023-02-02 12:49:01 +01:00
Michael Hansen
be69c81db5
Prioritize entity names over area names in Assist matching ( #86982 )
...
* Refactor async_match_states
* Check entity name after state, before aliases
* Give entity name matches priority over area names
* Don't force result to have area
* Add area alias in tests
* Move name/area list creation back
* Clean up PR
* More clean up
2023-01-30 23:46:25 -05:00
Michael Hansen
adeaf746ec
Use device area id in intent matching ( #86678 )
...
* Use device area id when matching
* Normalize whitespace in response
* Add extra test entity
2023-01-26 09:48:49 -06:00
Erik Montnemery
fea30c1ce9
Terminate strings at NUL when recording states and events ( #86687 )
2023-01-26 11:11:03 +01:00
Paulus Schoutsen
df0fc30695
Fix oauth2 error ( #86634 )
2023-01-25 20:50:16 +01:00
Vaarlion
3007e0259d
Add a `contains` jinja filter and test ( #86390 )
2023-01-25 11:51:47 +01:00
Michael Hansen
ea95abcb30
Use intent responses from home-assistant-intents ( #86484 )
...
* Use intent responses from home_assistant_intents
* Use error responses from home_assistant_intents
* Remove speech checks for intent tests (set by conversation now)
* Bump hassil and home-assistant-intents versions
* Use Home Assistant JSON reader when loading intents
* Remove speech checks for light tests (done in agent)
* Add more tests for code coverage
* Add test for reloading on new component
* Add test for non-default response
2023-01-23 22:38:41 -05:00
Marc Mueller
6f94e47270
Update Union typing (6) [Py310] ( #86454 )
2023-01-23 15:01:07 +01:00
Marc Mueller
4f87c1f30f
Update pre-commit-config [Py310] ( #86415 )
2023-01-23 09:59:44 +01:00
Marc Mueller
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
da35097803
Update Optional typing (2) [Py310] ( #86419 )
2023-01-23 09:10:05 +01:00
Marc Mueller
8abce25948
Update Union typing (4) [Py310] ( #86427 )
2023-01-23 09:04:40 +01:00
Marc Mueller
45b4b0e990
Import `ParamSpec` from typing [Py310] ( #86413 )
...
* Import ParamSpec from typing [Py310]
* Update additional imports
2023-01-23 07:28:43 +01:00
J. Nick Koston
ca4d7634a8
Switch an `asyncio.wait_for` in the template helper to `async_timeout` ( #86349 )
...
Switch an asyncio.wait_for in the template helper to async_timeout
Eliminates the extra task when calling async_render_will_timeout
2023-01-22 00:02:03 +02:00
Franck Nijhof
79b52a2b41
Stricter pylint message control ( #86154 )
2023-01-20 13:47:55 +01:00
Aarni Koskela
656632f504
Fix docstring in helpers.template_entity ( #86227 )
2023-01-19 21:24:44 -05:00
Michael Hansen
5aca996f22
HassTurnOn/Off intents to also handle cover entities ( #86206 )
...
* Move entity/area resolution to async_match_states
* Special case for covers in HassTurnOn/Off
* Enable light color/brightness on areas
* Remove async_register from default agent
* Remove CONFIG_SCHEMA from conversation component
* Fix intent tests
* Fix light test
* Move entity/area resolution to async_match_states
* Special case for covers in HassTurnOn/Off
* Enable light color/brightness on areas
* Remove async_register from default agent
* Remove CONFIG_SCHEMA from conversation component
* Fix intent tests
* Fix light test
* Fix humidifier intent handlers
* Remove DATA_CONFIG for conversation
* Copy ServiceIntentHandler code to light
* Add proper errors to humidifier intent handlers
2023-01-19 17:15:01 -06:00
Jan Bouwhuis
25392655e7
Allow translating select selector options ( #85531 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-01-17 16:22:19 +01:00
Erik Montnemery
788edc21fb
Deduplicate some entity registry code ( #85541 )
2023-01-16 22:06:52 +01:00
Karlie Meads
156307f3f2
Fix logic of disabled condition for "OR" ( #79718 )
2023-01-16 21:08:09 +01:00
Allen Porter
1afb4897a8
Add a timeout during OAuth token exchange and additional debug logging ( #85911 )
2023-01-16 19:52:43 +01:00
Franck Nijhof
64c2340fab
Core code styling improvements ( #85963 )
2023-01-15 23:00:51 +01:00
Erik Montnemery
8983f665cf
Refactor device registry JSON cache ( #85539 )
2023-01-09 09:50:27 -10:00
Erik Montnemery
b933a53aa3
Refactor entity registry JSON cache ( #85085 )
...
* Refactor entity registry JSON cache
* Fix generator
* Tweak
* Improve string building
* Improve test coverage
* Override EntityRegistryItems.values to avoid __iter__ overhead
2023-01-09 16:52:52 +01:00
Franck Nijhof
06a35fb7db
Code styling tweaks to core helpers ( #85441 )
2023-01-08 13:44:09 -10:00
J. Nick Koston
a18a629c19
Avoid pattern search entry when there are no patterns in the entity filter ( #85404 )
2023-01-07 14:40:58 -10:00
Michael Hansen
ecaec0332d
Hassil intents ( #85156 )
...
* Add hassil to requirements
* Add intent sentences
* Update sentences
* Use hassil to recognize intents in conversation
* Fix tests
* Bump hassil due to dependency conflict
* Add dataclasses-json package contraints
* Bump hassil (removes dataclasses-json dependency)
* Remove climate sentences until intents are supported
* Move I/O outside event loop
* Bump hassil to 0.2.3
* Fix light tests
* Handle areas in intents
* Clean up code according to suggestions
* Remove sentences from repo
* Use home-assistant-intents package
* Apply suggestions from code review
* Flake8
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-01-07 16:20:21 -05:00
J. Nick Koston
194adcde9c
Drop ChainMap in translation cache ( #85260 )
2023-01-06 11:52:18 -10:00
Marc Mueller
516cb31635
Fix multi inheritance with CoordinatorEntity ( #85053 )
2023-01-03 23:07:59 +01:00
J. Nick Koston
d89c259d7e
Fix double time conversion in async_track_point_in_utc_time ( #85036 )
2023-01-03 20:21:54 +01:00
Marc Mueller
972eb34ed9
Improve `bluetooth` generic typing ( #84891 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-02 21:19:53 -10:00
Franck Nijhof
5cfa98e400
Improve typing of SelectorConfig ( #85022 )
2023-01-02 18:52:15 -05:00
Erik Montnemery
11c174aca3
Revert "Add aliases to device registry items" ( #84976 )
2023-01-02 12:30:25 +01:00
Joakim Plate
5c43f0861f
Avoid running final writes in executor in test ( #84679 )
2022-12-28 23:40:11 +01:00
Franck Nijhof
d4f69a3652
String formatting and max line length - Part 7 ( #84532 )
...
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 ( #84294 )
...
* Add aliases to area registry items
* Update test
* Fix WS API
2022-12-21 08:44:44 +01:00
Erik Montnemery
057bb6ea0a
Add aliases to device registry items ( #84246 )
2022-12-20 23:43:31 +01:00
Erik Montnemery
1f3da9cf1a
Add aliases to entity registry items ( #84239 )
2022-12-20 12:10:46 +01:00
Erik Montnemery
fd9124279b
Add minor version to area registry store ( #84280 )
2022-12-20 11:41:35 +01:00