Commit graph

14722 commits

Author SHA1 Message Date
Joakim Plate
ae7930c0ad
Use entity translation in dsmr ()
* Use entity translation in dsmr

* Combine a few strings
2023-05-17 22:31:04 +02:00
MatthewFlamm
d0460d5424
Fix NWS error with no observation ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-05-17 22:00:13 +02:00
Matthias Alphart
c522ea855d
KNX Group Monitor: Load latest 50 Telegrams on start ()
* remove impossible test

IndividualAddress telegrams are not processed by xknx.telegram_queue

* Use Telegrams helper class for group monitor messages

* Store 50 telegrams in deque for group monitor

* Send recent telegrams at once on connection of group monitor

* Update KNX-frontend to support group monitor prepopulation
2023-05-17 09:58:00 +02:00
J. Nick Koston
b993fe1c9d
Cache generation of the service descriptions () 2023-05-16 21:42:37 -05:00
tronikos
6c56ceead0
Create Google Generative AI Conversation integration ()
* Copy openai_conversation to google_generative_ai_conversation
This is to improve diff of the next commit with the actual implementation.

Commands used:
cp -r homeassistant/components/openai_conversation/ homeassistant/components/google_generative_ai_conversation/
cp -r tests/components/openai_conversation/ tests/components/google_generative_ai_conversation/

find homeassistant/components/google_generative_ai_conversation/ tests/components/google_generative_ai_conversation/ -type f | xargs sed -i \
-e 's@openai_conversation@google_generative_ai_conversation@g' \
-e 's@OpenAI Conversation@Google Generative AI Conversation@g' \
-e 's@balloob@tronikos@g'

* Add google_generative_ai_conversation to Google brand

* Google Generative AI Conversation

* Sync recent openai changes

* handle empty responses
2023-05-16 21:05:56 -04:00
rikroe
defc23cc7c
Fix china login for bmw_connected_drive ()
* Bump bimmer_connected to 0.13.5

* Fix snapshots after dependency bump

* Load gcid from config entry if available

* Add tests

---------

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2023-05-17 02:03:01 +02:00
Álvaro Fernández Rojas
e5c12122e2
Update aioairzone to v0.5.6 () 2023-05-16 12:51:22 +02:00
J. Nick Koston
99265a983a
Speed up reconnects by caching state serialize () 2023-05-16 02:33:12 -05:00
J. Nick Koston
9c039a17ea
Bump guppy3 to 3.1.3 () 2023-05-16 08:26:17 +02:00
Matthias Alphart
2f8e8901fc
Add KNX interface device trigger for telegrams ()
* telegram device trigger initial

* add Telegrams helper class

to parse and convert Telegram only once instead of once per device trigger

* translation

* label for extra_field

* test device trigger

* test trigger callback removal

* rename extra_field key to same name as used in trigger

* typo
2023-05-15 22:59:29 +02:00
epenet
b38a7aabe9
Fix lingering timer in withings () 2023-05-15 21:20:20 +02:00
Jan Bouwhuis
c97e0f11a5
Fix last imap message is not reset on empty search () 2023-05-15 21:15:10 +02:00
epenet
48ab74eedf
Add missing mock in wiffi tests () 2023-05-15 11:15:19 +02:00
J. Nick Koston
b95405a7e9
Small performance improvements to state diff messages ()
Adds missing test coverage
2023-05-14 12:28:34 -04:00
J. Nick Koston
2848f8648d
Log last message when websocket reaches peak limit ()
When we hit the absolute limit, we would log the last messages as
it was key to finding out the source. We now do the same when
we hit the peak limit
2023-05-14 12:22:19 -04:00
Aaron Bach
637941df4d
Fix a series of bugs due to Notion API changes ()
* Fix a series of bugs due to Notion API changes

* Simplify

* Reduce blast radius

* Reduce blast radius

* Fix tests
2023-05-14 12:07:15 -04:00
J. Nick Koston
8711735ec0
Improve websocket throughput and reduce latency () 2023-05-13 00:13:57 +09:00
Álvaro Fernández Rojas
45e7283584
Add Airzone fan speed support () 2023-05-12 22:56:17 +09:00
Jan Bouwhuis
a05c20a498
Filter replaying unrelated retained MQTT messages when subscribing to share topics ()
* Do not replay already processed retained subscr.

* Add tests

* Always replay wildcards

* Update tests for debouncer

* Rework for retained topics

* Fix test

* Correct comment

* Add cleanup and test

* Fix key error

* Correct helper

* Rename mock

* Add comment on function _retained_init

* Always replay initial retained payload

* Apply suggestion moving msg.retain to outer check

* Improve test on edge case

* Improve comment formatting

* Follow up comment - improve comments on test

* Update homeassistant/components/mqtt/client.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-12 15:23:05 +02:00
Piotr Tobolski
02b5d643e7
Add unique_id support to history_stats sensor () 2023-05-12 15:03:06 +02:00
Erik Montnemery
5a7c3aaa2d
Add sensor device class volatile_organic_compounds_parts () 2023-05-12 14:37:54 +02:00
Álvaro Fernández Rojas
e9705364a8
Fix Airzone Auto operation mode () 2023-05-12 16:07:29 +09:00
J. Nick Koston
52c773a776
Always request at least one zone for multi-zone LIFX devices () 2023-05-11 12:02:32 +02:00
Erik Montnemery
c1f716487c
Include data for entire periods in response to recorder/statistics_during_period ()
* Include data for entire periods in response to recorder/statistics_during_period

* Break out function for calculating the end of the month
2023-05-11 11:28:33 +02:00
Franck Nijhof
67d5ca4894
Mark entities from the sun as diagnostic () 2023-05-11 18:27:19 +09:00
Bram Kragten
75f8ea48f4
Add tts get engine ws command ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-11 10:51:00 +02:00
Erik Montnemery
4568207f9b
Support calculating changes between consecutive sum statistics ()
* Support calculating changes between consecutive sum statistics

* Add support for unit conversion when calculating change

* Don't include sum in WS response unless requested

* Improve tests

* Break out calculating change to its own function

* Improve test coverage
2023-05-11 10:05:58 +02:00
J. Nick Koston
8b57d31eba
Add ONVIF services to diagnostics () 2023-05-11 17:03:31 +09:00
Ziv
dd7db85529
User config flow and custom panel for Dynalite integration () 2023-05-11 00:17:23 +02:00
Matthias Alphart
6250b0a230
Add a custom panel for KNX with a group monitor ()
* Add KNX panel

* provide project data for the panel group monitor

* upload and delete project from panel

* test project store

* more tests

* finish tests

* use integers for DPTBinary payload monitor display

* add project to diagnostics

* require new frontend version

* update knx_frontend

* review suggestions

* update xknxproject to 3.1.0

---------

Co-authored-by: Marvin Wichmann <me@marvin-wichmann.de>
2023-05-11 00:13:22 +02:00
Flo
0f2caf864a
Alexa Intent: Use the 'id' field and expose nearest resolutions as variables ()
* Use the 'id' field and nearest resolutions
Expose nearest Resolution (ID and Value) as Variables

* Add more specific type hints

* Change type definition of request

* Add deprecation warning and remove variables

* Remove deprecation warning & update tests

* Fix wrong value assignment

* revert future changes
2023-05-10 21:25:08 +02:00
Franck Nijhof
97cac66195
Add counter.set_value service () 2023-05-10 18:52:10 +02:00
Malte Franken
649557ed2e
Add config flow to geo_json_events ()
* migrated geo_json_events integration to config flow

* improve test coverage

* code reformatting

* fix tests

* fix entity manager

* changes after review

* improve test coverage and fixed form

* remove unused code

* remove commented out code

* changes after review

* make title prettier

* fixed tests

* simplified code

* changes after review

* fix test

* push deprecation out

* changes after review

* changes after review

* changes after review

* changes after review

* changes after review

* removed scan interval from user flow and import flow
2023-05-10 10:28:45 +02:00
Erik Montnemery
7d29d584fd
Fix race in Alexa async_enable_proactive_mode () 2023-05-09 19:58:00 +02:00
Erik Montnemery
67c1051305
Allow setting an entity's name by its device class ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-09 18:55:55 +02:00
epenet
5f7496f97b
Fix lingering timer in hue light tests () 2023-05-09 17:07:23 +02:00
Jan Bouwhuis
25549eed85
Debounce and group mqtt unsubscribes ()
* Debounce MQTT unsubscribes and merge to one call

* Make _async_unsubscribe a callback

* Make sure unsubscribes are processed

* Move debug log out of lock

* Reduce calls and raise outside lock

* Cancel any unsubscribe when queing

* Copy pending unsubscribes

* Only convert topics to list once

* No copy needed

* Typo in comment
2023-05-09 16:36:19 +02:00
G Johansson
0bda869553
Lock entity options () 2023-05-08 22:06:11 +02:00
Jan Bouwhuis
689c6fbef7
Merge pending MQTT subscribes to a single call to the paho client ()
* Merge mqtt subscribes in one call

* Cleanup

* cleanup, log outside of lock

* Remove function wrapper

* Add test that we bundle subscriptions
2023-05-08 15:37:25 +02:00
G Johansson
6ad4e13b38
Manual trigger entity and refactor command_line switch ()
* TriggerEntity to CoordinatorTriggerEntity

* _render_templates

* split manual vs coordinator

* name

* ManualTriggerEntity

* value

* Remove ManualTriggerEntity

* ManualTriggerEntity

* process_manual_data

* Add test

* imports

* Move ManualTriggerEntity

* cmd_line switch

* Review comments

* Fix templating

* Review comments

* Remove unneeded logging
2023-05-08 10:19:37 +02:00
Robert Hillis
54b303dfea
Cleanup after removing D-Link yaml () 2023-05-07 16:49:34 +02:00
Guido Schmitz
f165a41b7a
Add button platform to devolo Home Network ()
* Add Start WPS button

* Add remaining buttons

* Set correct entity categories

* Inherit from DevoloEntity

* Fix mypy

* Apply feedback

* Raise on DevicePasswordProtected

* Fix ruff

* Really fix ruff

* Adapt to recent development

* Change error message
2023-05-07 14:53:46 +02:00
Austin Mroczek
16c915864b
Add diagnostic sensors for TotalConnect ()
* add diagnostic sensors

* test binary_sensor.py file

* add tests for binary sensor

* fix zone type checks and error on unknown

* improve entity tests

* hide entities by default

* Revert "hide entities by default"

This reverts commit 9808d732471385e45ccc5f7c3aea93bfecbdfa6f.

* Update homeassistant/components/totalconnect/binary_sensor.py

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

* update binary_sensor per comments

* update test

* move to _attr_extra_state_attributes

* no spaces in unique_id

* update per balloob suggestions

* fix typing

* fix black and mypy

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* add more to binary_sensor tests

* remove unused import

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-05-07 10:27:33 +02:00
andarotajo
bf6d429339
Add config flow to dwd_weather_warnings ()
* Add config flow to dwd_weather_warnings

* Add additional test for more coverage

* Apply code review changes

* Apply further code review changes

* Rename constant for configuration

* Apply code review changes

* Simplify config flow code
2023-05-07 10:26:39 +02:00
Thijs W
b22c45ea29
Fix radio_id can be unavailable ()
Allow radio_id to be unavailable
2023-05-07 08:59:36 +02:00
G Johansson
2c5cad4ca0
Clean config flow for SQL () 2023-05-07 01:42:37 +02:00
J. Nick Koston
f47f49c9a1
Reduce overhead to check bluetooth logging () 2023-05-07 01:30:54 +02:00
J. Nick Koston
ce3cb5864a
Improve reliablity of recorder purge test () 2023-05-07 01:28:43 +02:00
J. Nick Koston
d05724a42a
Fix onvif reauth when device returns a http 401/403 error () 2023-05-07 00:12:24 +02:00
G Johansson
d66305ddd3
Remove dlink yaml import () 2023-05-07 00:01:58 +02:00