Commit Graph

78102 Commits (e37ee6843441544b2b0a5ac80f25b6e0505dc12c)

Author SHA1 Message Date
epenet 1db7c7946e
Add type hints for MqttMockHAClient in test fixtures (#118683) 2024-06-03 09:29:15 +02:00
epenet 9a5706fa30
Add type hints for pytest.LogCaptureFixture in test fixtures (#118687) 2024-06-03 09:28:54 +02:00
Jan Bouwhuis bb259b607f
Refactor incomfort platform attributes (#118667)
* Refector incomfort platform attributes

* Initialize static entity properties as class level
2024-06-03 08:32:05 +02:00
Richard Kroegel 7c5a6602b3
Set lock state to unkown on BMW API error (#118559)
* Revert to previous lock state on BMW API error

* Set lock state to unkown on error and force refresh from API

---------

Co-authored-by: Richard <rikroe@users.noreply.github.com>
2024-06-03 07:48:48 +02:00
Marlon c23ec96174
Add BaseEntity for apsystems integration (#117514)
* Add BaseEntity for apsystems integration

* Exclude entity.py from apsystems from coverage

* Remove api from BaseEntity from apsystems as it is not yet used

* Split BaseEntity and BaseCoordinatorEntity in apsystems integration

* Clean up of asserting unique_id everywhere in apsystems integration

* Remove BaseCoordinatorEntity from apsystems

* Remove double type declaration originating from merge in apsystems
2024-06-03 07:28:13 +02:00
Thomas55555 78e5f9578c
Clean up Husqvarna Automower number platform (#118641)
Address late review and remove unneeded loop in Husqvarna Automower
2024-06-03 05:13:02 +02:00
G Johansson 6a8a975fae
Remove config flow import from fastdotcom (#118665) 2024-06-02 21:04:35 -04:00
G Johansson dd1d21c77a
Fix entity state dispatching for Tag entities (#118662) 2024-06-02 20:41:16 -04:00
puddly 746939c8cd
Bump ZHA dependencies (#118658)
* Bump bellows to 0.39.0

* Do not create a backup if there is no active ZHA gateway object

* Bump universal-silabs-flasher as well
2024-06-02 16:55:48 -04:00
Jan Bouwhuis 375f48142c
Fix handling undecoded mqtt sensor payloads (#118633) 2024-06-02 21:25:05 +02:00
Maciej Bieniek afc29fdbe7
Add support for the DS18B20 temperature sensor to Nettigo Air Monitor integration (#118601)
Add support for DS18B20 temperature sensor

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-02 20:55:36 +02:00
Joost Lekkerkerker 51394cefba
Fix incorrect placeholder in SharkIQ (#118640)
Update strings.json
2024-06-02 20:15:35 +02:00
J. Nick Koston 51ed4f89ec
Use more efficient chunked_or_all for recorder table managers (#118646) 2024-06-02 13:04:53 -05:00
Adam Pasztor 54a1a4ab41
Bump pyads to 3.4.0 (#116934)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-02 15:41:44 +02:00
epenet 37fc16d7b6
Fix incorrect `patch` type hint in main conftest (#118461) 2024-06-02 15:34:30 +02:00
Marc Mueller dbb27755a4
Update mypy-dev to 1.11.0a5 (#118519) 2024-06-02 15:28:24 +02:00
J. Nick Koston 8f94205014
Include a traceback for non-strict event loop blocking detection (#118620) 2024-06-02 06:36:25 -04:00
epenet e976db8443
Address late review comment in samsungtv (#118539)
Address late comment in samsungtv
2024-06-02 10:42:42 +02:00
Luca Angemi d67ed42edc
Fix telegram bot send_document (#118616) 2024-06-02 01:32:24 -05:00
Michael 46eb779c5c
Avoid future exception during setup of Synology DSM (#118583)
* avoid future exception during integration setup

* clear future flag during setup

* always clear the flag (with comment)
2024-06-01 23:51:17 +02:00
Marc Mueller e485a0c6f2
Update typing-extensions to 4.12.1 (#118615) 2024-06-01 22:26:23 +02:00
Alexandre CUER 1f922798d8
Add new codeowner for emoncms integration (#118609)
adding new codeowner
2024-06-01 21:14:18 +02:00
Sid daadc4662a
Bump ruff to 0.4.7 (#118612) 2024-06-01 20:04:04 +02:00
Maciej Bieniek 649d6ec11a
Bump `nettigo_air_monitor` library to version `3.2.0` (#118600)
* Bump nam to version 3.2.0

* Update test snapshot

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-01 18:10:45 +02:00
Dave T b69789d056
Don't prompt user to verify still image if none was provided in generic camera (#118599)
Skip user prompt for preview image if only stream
2024-06-01 10:30:32 -04:00
Thomas Ytterdal ca89d22a34
Ignore myuplink sensors without a description that provide non-numeric values (#115525)
Ignore sensors without a description that provide non-numeric values

Co-authored-by: Jan-Philipp Benecke <jan-philipp@bnck.me>
2024-06-01 11:27:03 +02:00
epenet 6115dffd80
Cleanup pylint ignore in melnor tests (#118564) 2024-06-01 08:03:32 +02:00
Joost Lekkerkerker 51933b0f47
Improve typing in Zabbix (#118545) 2024-06-01 07:40:26 +02:00
tronikos a4612143e6
Use gemini-1.5-flash-latest in google_generative_ai_conversation.generate_content (#118594) 2024-05-31 21:57:14 -07:00
tronikos 7af469f81e
Strip Google AI text responses (#118593)
* Strip Google AI test responses

* strip each part
2024-05-31 21:55:52 -07:00
Paulus Schoutsen f3b20d30ae
Add base prompt for LLMs (#118592) 2024-06-01 00:21:37 -04:00
tronikos dfb407728f
Stop instructing LLM to not pass the domain as a list (#118590) 2024-05-31 20:21:18 -04:00
Robert Svensson 3232fd0eaf
Improve UniFi config flow tests (#118587)
* Use proper fixtures in config flow tests

* Improve rest of config flow tests

* Small improvement

* Rename fixtures
2024-06-01 00:27:53 +02:00
epenet 738935a73a
Update device connections in samsungtv (#118556) 2024-05-31 16:07:51 -05:00
Jan-Philipp Benecke 32b51b8792
Run ruff format for device registry (#118582) 2024-05-31 22:22:48 +02:00
Joost Lekkerkerker f6800e6968
Improve typing in Zengge (#118547) 2024-05-31 21:35:42 +02:00
epenet 41e852a01b
Add ability to replace connections in DeviceRegistry (#118555)
* Add ability to replace connections in DeviceRegistry

* Add more tests

* Improve coverage

* Apply suggestion

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-05-31 15:31:44 -04:00
Denis Shulyaka bae96e7d36
Add Google Generative AI Conversation system prompt `user_name` and `llm_context` variables (#118510)
* Google Generative AI Conversation: Add variables to the system prompt

* User name and llm_context

* test for template variables

* test for template variables

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-05-31 15:28:44 -04:00
Denis Shulyaka 46da43d09d
Add OpenAI Conversation system prompt `user_name` and `llm_context` variables (#118512)
* OpenAI Conversation: Add variables to the system prompt

* User name and llm_context

* test for user name

* test for user id

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-05-31 15:28:23 -04:00
Paulus Schoutsen 80e9ff672a
Fix openAI tool calls (#118577) 2024-05-31 19:28:52 +02:00
starkillerOG 51d8f83a54
Add state translation to Reolink AI detections (#118560) 2024-05-31 17:55:59 +02:00
Josef Zweck d956db691a
Migrate openai_conversation to `entry.runtime_data` (#118535)
* switch to entry.runtime_data

* check for missing config entry

* Update homeassistant/components/openai_conversation/__init__.py

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-05-31 11:16:39 -04:00
J. Nick Koston ade0f94a20
Remove duplicate getattr call in entity wrap_attr (#118558) 2024-05-31 11:11:46 -04:00
Paulus Schoutsen 6dd01dbff7
Rename llm.ToolContext to llm.LLMContext (#118566) 2024-05-31 11:11:24 -04:00
J. Nick Koston 6656f7d6b9
Log directory blocking I/O functions that run in the event loop (#118529)
* Log directory I/O functions that run in the event loop

* tests
2024-05-31 11:09:19 -04:00
J. Nick Koston 1fef4fa1f6
Prevent time.sleep calls from blocking the event loop (#118561)
* Prevent time.sleep calls from blocking the event loop

We have been warning on these since Jan 2022. 2+ years seems more than enough
time to give to fix these. see https://github.com/home-assistant/core/pull/63766

* Prevent time.sleep calls from blocking the event loop

We have been warning on these since Jan 2022. 2+ years seems more than enough
time to give to fix these. see https://github.com/home-assistant/core/pull/63766
2024-05-31 11:08:22 -04:00
Michael Chisholm 15f726da50
Fix KeyError in dlna_dmr SSDP config flow when checking existing config entries (#118549)
Fix KeyError checking existing dlna_dmr config entries
2024-05-31 10:52:19 -04:00
J. Nick Koston d67f14ac0b
Fix openweathermap config entry migration (#118526)
* Fix openweathermap config entry migration

The options keys were accidentally migrated to data so
they could no longer be changed in the options flow

* more fixes

* adjust

* reduce

* fix

* adjust
2024-05-31 10:51:38 -04:00
Bas Brussee bff2d3e2ee
Revert "Fix Tibber sensors state class" (#118409)
Revert "Fix Tibber sensors state class (#117085)"

This reverts commit 658c1f3d97.
2024-05-31 10:50:22 -04:00
osohotwateriot cf3e758aa1
Move OSO Energy base entity class to separate module (#118563)
Move base entity class to separate file
2024-05-31 16:13:20 +02:00