Commit Graph

70855 Commits

Author SHA1 Message Date
Marc Mueller
e7cc26d028 Improve folder_watcher typing (#107271) 2024-01-08 10:49:15 +01:00
Marc Mueller
3632d6be46 Enable strict typing for dlna_dms (#107305) 2024-01-08 10:45:51 +01:00
Marc Mueller
d0e6ce193c Enable strict typing for tod (#107284) 2024-01-08 10:44:47 +01:00
Marc Mueller
c30bf1f6e1 Enable strict typing for nightscout (#107307) 2024-01-08 10:43:40 +01:00
Marc Mueller
b22cd2deaa Enable strict typing for system_health (#107283) 2024-01-08 10:40:49 +01:00
Joost Lekkerkerker
82e0fc5f4e Use parametrize in drop connect binary sensor tests (#107111) 2024-01-08 10:38:44 +01:00
Josef Zweck
14bf778c10 Cleanup device registry for tedee when a lock is removed (#106994)
* remove removed locks

* move duplicated code to function

* remove entities by removing device

* add new locks automatically

* add locks from coordinator

* smaller pr

* remove snapshot

* move lock removal to coordinator

* change comment

* Update tests/components/tedee/test_init.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tedee/test_init.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* test lock unavailable

* move logic to function

* resolve merge conflicts

* no need to call keys()

* no need to call keys()

* check for change first

* readability

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-08 10:37:35 +01:00
Joost Lekkerkerker
5fe96390f5 Add zone devices to AnthemAV (#107192) 2024-01-08 10:37:17 +01:00
Manuel Rüger
394385fdeb Fix Luftdaten sensor id string (#107506)
Luftdaten: fix sensor id string
2024-01-08 10:15:30 +01:00
Marc Mueller
3c7a9272fa Enable strict typing for intent (#107282) 2024-01-08 10:09:48 +01:00
Marc Mueller
5ef04fcc7b Improve hunterdouglas_powerview typing (#107445) 2024-01-08 10:08:52 +01:00
Marc Mueller
a6fc4c2bd5 Improve hassio typing (#107292) 2024-01-08 10:08:09 +01:00
Marc Mueller
78752264b3 Fully type homeassistant integration (#107380) 2024-01-08 10:07:30 +01:00
Marc Mueller
5ae419367e Enable strict typing for generic_hygrostat (#107272) 2024-01-08 09:59:31 +01:00
Marc Mueller
265f587768 Enable strict typing for history_stats (#107273) 2024-01-08 09:58:07 +01:00
Erwin Douna
3958d89ae6 Improve typing for Tado (#106992) 2024-01-08 09:57:01 +01:00
Lucas Mindêllo de Andrade
db53237b9a Bump SunWEG to 2.1.0 (#107459) 2024-01-08 09:51:06 +01:00
Marc Mueller
f5d5e1dcbb Enable strict typing for google_assistant_sdk (#107306) 2024-01-08 09:47:17 +01:00
Marc Mueller
fde7a6e9ef Improve dispatcher typing (#106872) 2024-01-08 09:45:37 +01:00
J. Nick Koston
ea4143154b Handle unknown state in HomeKit (#107039) 2024-01-08 09:42:28 +01:00
Jan-Philipp Benecke
40e1bab0ac Remove deprecated YAML for freebox (#107497) 2024-01-08 09:36:17 +01:00
Marc Mueller
442eb68d92 Fix asyncio.gather call (#107500) 2024-01-08 09:35:47 +01:00
tronikos
3709475cb5 Enable long term statistics for Flume water usage current sensor (#107512) 2024-01-08 09:31:56 +01:00
G Johansson
d8c139f211 Fix language flavors in holiday (#107392) 2024-01-08 09:31:44 +01:00
J. Nick Koston
d260ed938a Reduce overhead to call entity services (#106908) 2024-01-08 09:30:52 +01:00
Jan Bouwhuis
9ad3c8dbc9 Remove MQTT legacy vacuum support (#107274) 2024-01-08 09:22:43 +01:00
J. Nick Koston
3eb81bc461 Add coverage for scanning tags with ESPHome (#107337) 2024-01-08 09:20:27 +01:00
Joost Lekkerkerker
1171a7a3d9 Migrate kmtronic to has entity name (#107469) 2024-01-08 09:14:37 +01:00
Joost Lekkerkerker
af209fe2b8 Migrate Mullvad to has entity name (#107520) 2024-01-08 09:13:50 +01:00
Joost Lekkerkerker
7202126751 Add Met eireann to strict typing (#107486) 2024-01-08 09:13:15 +01:00
J. Nick Koston
d609344f40 Reduce duplicate code in ESPHome connection callback (#107338) 2024-01-08 09:10:58 +01:00
Joost Lekkerkerker
102fdbb237 Bump aiowithings to 2.1.0 (#107417) 2024-01-08 09:08:59 +01:00
J. Nick Koston
448d5bbf27 Increase pip timeout in image builds to match core (#107514) 2024-01-08 09:07:42 +01:00
J. Nick Koston
fc36c48acc Bump sensorpush-ble to 1.6.2 (#107410) 2024-01-07 22:06:12 -10:00
Joost Lekkerkerker
eaac01bc76 Introduce heat area property in moehlenhoff alpha2 (#107488) 2024-01-08 08:17:28 +01:00
Joost Lekkerkerker
8b0c96a212 Clean up met config flow (#107480) 2024-01-08 08:11:30 +01:00
Joost Lekkerkerker
f2483bf660 Use constants in Alpha2 config flow (#107518) 2024-01-08 08:05:51 +01:00
J. Nick Koston
efffbc08aa Add support for bluetooth local name matchers shorter than 3 chars (#107411) 2024-01-07 18:25:56 -10:00
J. Nick Koston
69307374f4 Signficantly reduce executor contention during bootstrap (#107312)
* Signficantly reduce executor contention during bootstrap

At startup we have a thundering herd wanting to use the executor
to load manifiest.json. Since we know which integrations we are
about to load in each resolver step, group the manifest loads
into single executor jobs by calling async_get_integrations on
the deps of the integrations after they are resolved.

In practice this reduced the number of executor jobs
by 80% during bootstrap

* merge

* naming

* tweak

* tweak

* not enough contention to be worth it there

* refactor to avoid waiting

* refactor to avoid waiting

* tweaks

* tweaks

* tweak

* background is fine

* comment
2024-01-07 22:55:40 -05:00
J. Nick Koston
acf78664e2 Reduce overhead to compile statistics (#106927)
* Reduce overhead to compile statistics

statistics uses LazyState for compatibility with State when pulling
data from the database.

After the previous round of refactoring to modern history, the setters
are never called and can be removed.

* reduce
2024-01-07 22:36:49 -05:00
J. Nick Koston
d04e2d56da Add support for JSON fragments (#107213) 2024-01-07 17:36:31 -10:00
J. Nick Koston
50edc334de Refactor sensor recorder _get_sensor_states to check for state class first (#107046)
The state class check is cheap and the entity filter check is much
more expensive, so do the state class check first
2024-01-07 22:36:03 -05:00
J. Nick Koston
0b9992260a Improve logbook context augment performance (#106926)
Makes LazyEventPartialState a bit lazier since almost all the
properties are never called.
2024-01-07 22:35:28 -05:00
J. Nick Koston
d8c6534aff Refactor recorder for common event case (#106753)
Almost 99% of items that are put into the recorder queue are
Events. Avoid wrapping them in tasks since we have to unwrap
them right away and its must faster to check for both RecorderTask
and Events since events are the common case.
2024-01-07 22:31:40 -05:00
J. Nick Koston
368feec712 Refactor translations to reduce dict lookups (#107425)
* Refactor translations to reduce dict lookups

All of our cache lookups used:

`cache[language][O(component)][category]`

The cache was designed as

`cache[language][component][category][flatted_key]`

The lookups are now

`cache[language][category][O(component)]`

The cache is now stored as

`cache[language][category][component][flatted_key]`

This allows the catch fetch to avoid looking up
the category each loop

* already a set, and we do not mutate
2024-01-07 22:29:27 -05:00
Matthias Alphart
f53109f513 Move KNX service registration to async_setup (#106635) 2024-01-07 23:26:46 +01:00
Joost Lekkerkerker
426a1511d5 Mark Ring battery and signal strength sensors as diagnostic (#107503) 2024-01-07 23:14:38 +01:00
tronikos
810c6ea5ae Google Generative AI: Add a service for prompts consisting of text and images using Gemini Pro Vision (#105789)
* Bump google-generativeai to 0.3.1

* Migrate to the new API and default to gemini-pro

* Add max output tokens option

* Add generate_content service

* Add  tests

* additional checks

* async read_bytes

* Add tests for all errors
2024-01-07 16:21:27 -05:00
Marc Mueller
fd52172c33 Improve harmony typing (#107447) 2024-01-07 09:35:55 -10:00
Matthias Alphart
a9b51f0255 Fix KNX telegram device trigger not firing after integration reload (#107388) 2024-01-07 20:32:17 +01:00