Jan Bouwhuis
faac51d219
Improve error handling and logging on MQTT update entity state updates when template rederings fails ( #141960 )
2025-04-01 19:22:32 +02:00
Markus Adrario
426e9846d9
Add Homee climate platform ( #141616 )
...
* Add climate platform
* Add climate tests
* Add service tests
* Add snapshot test
* Code optimazitions 1
* Add test for current preset mode.
* code optimization 2
* code optimization 3
* small tweaks
* another small tweak
* Last minute changes
* Update tests/components/homee/test_climate.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* fix review comments
* typo
* more review fixes.
* maybe final review fixes.
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2025-04-01 18:08:36 +02:00
tmenguy
da9b3dc68b
Better throttling handling for the Renault API ( #141667 )
...
* Added some better throttling handling for the Renault API, it fixes #106777 HA ticket
* Added some better throttling handling for the Renault API, it fixes #106777 HA ticket, test fixing
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/renault_hub.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* bigger testsuite for #106777 HA ticket
* bigger testsuite for #106777 HA ticket
* bigger testsuite for #106777 HA ticket
* bigger testsuite for #106777 HA ticket
* Adjust tests
* Update homeassistant/components/renault/coordinator.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/renault_hub.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/renault/renault_hub.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/renault/test_sensor.py
* Update tests/components/renault/test_sensor.py
* Update tests/components/renault/test_sensor.py
* requested changes #106777 HA ticket
* Use unkown
* Fix test
* Fix test again
* Reduce and fix
* Use assumed_state
* requested changes #106777 HA ticket
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2025-04-01 17:14:21 +02:00
Artur Pragacz
c4f0d9d2fa
Always set up after dependencies if they are scheduled to be loaded ( #141593 )
...
* Always setup after dependencies
* Add comment
2025-04-01 16:28:29 +02:00
Simone Chemelli
aaafdee56f
Remove un-necessary wait for background tasks in Comelit tests ( #142000 )
2025-04-01 16:05:46 +02:00
Louis Christ
32ee31b8c7
Use saved volume when selecting preset in bluesound integration ( #141079 )
...
* Use load_preset to select preset as source
* Add tests
* Fix
---------
Co-authored-by: Joostlek <joostlek@outlook.com>
2025-04-01 14:41:24 +02:00
Erik Montnemery
2427b77363
Use send_json_auto_id in websocket_api tests ( #141994 )
2025-04-01 14:31:49 +02:00
Paulus Schoutsen
cbcd1929dd
Move Z-Wave JS smoke, CO, CO2, Heat, Water problem entities to diagnostic ( #129922 )
...
* Move Z-Wave JS smoke, CO, CO2, Heat, Water problem entities to diagnostic
* Update link + states
* Specify problem class explicitly instead of catch-all
* Heat alarm test is not a problem
* Also split out smoke alarm
* Document mapping rule
* add tests
* format
* update test
* review comments
* remove idle state from doc as it is ignored
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
2025-04-01 11:37:59 +02:00
epenet
3155c1cd4f
Add tests for renault QuotaLimitException ( #141985 )
2025-04-01 11:01:13 +02:00
Ben Jones
363b88407c
Handle empty or missing state values for MQTT light entities using 'template' schema ( #141177 )
...
* check for empty or missing values when processing state messages for MQTT light entities using 'template' schema
* normalise warning logs
* add tests (one is still failing and I can't work out why)
* fix test
* improve test coverage after PR review
* improve test coverage after PR review
2025-03-31 23:16:22 +02:00
puddly
b758dc202f
Reload the ZBT-1 integration on USB state changes ( #141287 )
...
* Reload the config entry when the ZBT-1 is unplugged
* Register the USB event handler globally to react better to re-plugs
* Fix existing unit tests
* Add an empty `CONFIG_SCHEMA`
* Add a unit test
* Fix unit tests
* Fix unit tests for Linux
* Address most review comments
* Address remaining review comments
2025-03-31 09:10:24 -10:00
Michael Hansen
28dbf6e3dc
Add preannounce boolean for announce/start conversation ( #141930 )
...
* Add preannounce boolean
* Fix disabling preannounce in wizard
* Fix casing
* Fix type of preannounce_media_id
* Adjust description of preannounce_media_id
2025-03-31 20:29:07 +02:00
Erik Montnemery
4071eb76c7
Revert PR 136314 (Cleanup map references in lovelace) ( #141928 )
...
* Revert PR 136314 (Cleanup map references in lovelace)
* Update homeassistant/components/lovelace/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix dashboard creation
* Update homeassistant/components/lovelace/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-03-31 18:33:45 +02:00
Erik Montnemery
6e6f10c085
Don't create persistent notification when starting discovery flow ( #141546 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2025-03-31 14:42:58 +02:00
Michael
58af3545f4
Correct further sensor categorizations in AVM Fritz!Box tools ( #141911 )
...
mark margin and attenuation as diagnostic and disable them by default
2025-03-31 13:18:44 +02:00
Joost Lekkerkerker
fba11d8016
Don't create SmartThings entities for disabled components ( #141909 )
2025-03-31 13:36:46 +03:00
Erik Montnemery
86622cd29d
Remove unnecessary imports of http integration ( #141899 )
...
* Remove unnecessary imports of http integration
* Check reason for test failures
* Revert "Check reason for test failures"
This reverts commit 5ccf356ab029402ab87e00dc00eeb4798a0f6658.
* Update tests
2025-03-31 11:30:20 +01:00
Joost Lekkerkerker
c91a1d0fce
Fix SmartThings being able to understand incomplete DRLC ( #141907 )
2025-03-31 12:20:06 +02:00
Dan Raper
778a2891ce
Bump ohmepy to 1.5.1 ( #141879 )
...
* Bump ohmepy to 1.5.1
* Fix types for ohmepy version change
2025-03-31 11:44:01 +02:00
Retha Runolfsson
560c719b0f
Add switchbot cover unit tests ( #140265 )
...
* add cover unit tests
* Add unit test for SwitchBot cover
* fix: use mock_restore_cache to mock the last state
* modify unit tests
* modify scripts as suggest
* improve readability
* adjust patch target per review comments
* adjust patch target per review comments
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-03-31 11:42:31 +02:00
Franck Nijhof
d5ab86edbf
Fix SmartThings climate entity missing off HAVC mode ( #141700 )
...
* Fix smartthing climate entity missing off HAVC mode:
* Fix tests
* Fix test
---------
Co-authored-by: Joostlek <joostlek@outlook.com>
2025-03-31 11:41:52 +02:00
Thomas55555
6aeb7f36f6
Handle 403 error in remote calendar ( #141839 )
...
* Handle 403 error in remote calendar
* tests
2025-03-31 11:40:14 +02:00
Erik Montnemery
f6308368b0
Test behavior of statistic_during_period when circular mean is undefined ( #141554 )
...
* Test behavior of statistic_during_period when circular mean is undefined
* Improve comment
2025-03-31 10:43:57 +02:00
pglab-electronics
c0e8f14745
Update support to external library pypglab to version 0.0.5 ( #141876 )
...
update support to external library pypglab to version 0.0.5
2025-03-31 10:25:48 +02:00
Marc Mueller
0be881bca6
Fix test RuntimeWarnings for homeassistant_hardware ( #141884 )
2025-03-31 07:24:02 +02:00
Paulus Schoutsen
e88b321741
Ensure user always has first turn for Google Gen AI ( #141893 )
2025-03-30 23:31:45 -04:00
Allen Porter
0c4cb27fe9
Add OAuth support for Model Context Protocol (mcp) integration ( #141874 )
...
* Add authentication support for Model Context Protocol (mcp) integration
* Update homeassistant/components/mcp/application_credentials.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Handle MCP servers with ports
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2025-03-30 23:14:52 -04:00
J. Nick Koston
1639163c2e
Handle encryption being disabled on an ESPHome device ( #141887 )
...
fixes #121442
2025-03-30 21:25:24 -04:00
Marc Mueller
7336178e03
Fix test RuntimeWarnings for hassio ( #141883 )
2025-03-30 12:00:48 -10:00
tdfountain
1c16fb8e42
Set and check unique id of config in NUT ( #141783 )
...
* Set and check unique id in config
* Update homeassistant/components/nut/config_flow.py
Set unique ID and abort only if value is defined
Co-authored-by: J. Nick Koston <nick+github@koston.org>
* Add duplicate ID test case for multiple devices
* Add unique ID check to config flow step for UPS
* Update homeassistant/components/nut/__init__.py
Fix to only set config_entries unique ID if not None
Co-authored-by: J. Nick Koston <nick+github@koston.org>
* Remove duplicate config flow call
---------
Co-authored-by: J. Nick Koston <nick+github@koston.org>
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-03-30 11:41:56 -10:00
tdfountain
e81a08916a
Remove scan interval option from NUT ( #141845 )
...
Remove scan interval option and test case, migrate config and add migration test case
2025-03-30 22:34:45 +02:00
John Karabudak
85d2e3d006
Fix LLM to speed up prefill ( #141156 )
...
* fix: two minor LLM changes to speed up prefill
- moved the current date/time to the end of the prompt
- started sorting all entities by last_changed
* addressed PR comments
* fixed tests
* reduced scope of try/catch in LLM prompt
* addressed more PR comments
* fixed Anthropic test
* addressed another PR comment
* fixed remainder of tests
2025-03-30 13:30:40 -07:00
Eli Sand
5106548f2c
Fix generic_thermostat so it doesn't turn on when current temp is within target temp range ( #138209 )
...
* Don't turn on thermostat if temp is equal to target temp.
* Update strings to reflect logic change.
* Fix logic and add zero tolerance tests.
* Include tests for cool mode
* Removed unnecessary async_block_till_done calls
2025-03-30 19:43:13 +01:00
Lucas Mindêllo de Andrade
3d49000c75
Remove sunweg integration ( #124230 )
...
* chore(sunweg): remove sunweg integration
* Update homeassistant/components/sunweg/strings.json
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
* Update homeassistant/components/sunweg/manifest.json
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
* feat: added async remove entry
* Clean setup_entry; add tests
---------
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
Co-authored-by: abmantis <amfcalt@gmail.com>
2025-03-30 18:11:09 +01:00
Michael
963ea6141c
Fix the entity category for max throughput sensors in AVM Fritz!Box Tools ( #141838 )
...
correct the entity category for max throughput sensors
2025-03-30 17:46:03 +02:00
Paulus Schoutsen
86be626c69
Migrate ESPHome to use token instead of media source ID for legacy Assist Pipelines ( #139665 )
...
Migrate legacy ESPHome devices to use TTS token
Co-authored-by: Franck Nijhof <git@frenck.dev>
2025-03-30 16:53:49 +02:00
Michal Schwarz
b3564b6cff
Fix order of palettes, presets and playlists in WLED integration ( #132207 )
...
* Fix order of palettes, presets and playlists in WLED integration
* fix tests: update palette items order
---------
Co-authored-by: Franck Nijhof <git@frenck.dev>
2025-03-30 16:14:56 +02:00
Marlon
acbee815be
Update apsystems library to support battery inverter ( #140086 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2025-03-30 16:11:22 +02:00
Allen Porter
4463e4c42b
Move roborock unique id to be based on roborock userid instead of email ( #141337 )
...
* Move roborock unique id to be based on roborock userid instead of email
* Remove unnecessary data update
* Update tests
* Add tests coverage for removal of config entry
* Use config entry migration
* Remove unused fixtues
* Remove unnecessary logging
2025-03-30 16:04:28 +02:00
Simone Chemelli
5e1bbd8bff
Add full test coverage for Comelit climate platform ( #140460 )
...
* Add climate tests for Comelit
* fix climate and humidifier
* fix code and tests
* fix humidifier
* apply review comment
* align post merge
* add more tests
* typo
* apply review comment
* ruff
2025-03-30 15:15:26 +02:00
Michael
4761207097
Add boost preset to AVM Fritz!SmartHome climate entities ( #141802 )
...
* add boost preset to climate entities
* add set boost preset test
2025-03-30 15:03:26 +02:00
Simone Chemelli
b4a6ca63b3
Add full test coverage for Comelit sensor platform ( #141813 )
2025-03-30 15:02:15 +02:00
Simone Chemelli
d3257d96d0
Add full test coverage for Comelit light platform ( #141736 )
...
* Add full test coverage for Comelit light platform
* cleanup
2025-03-30 14:59:56 +02:00
Aidan Timson
578fece13e
Fix System Bridge wait timeout wait condition ( #141811 )
...
* Fix System Bridge wait timeout wait condition
* Add DataMissingException as a timeout condition
* Add tests
2025-03-30 14:57:53 +02:00
Norbert Rittel
0eeb6b5fd5
Replace "Idle" with common state in backup
, fix sentence-case ( #141814 )
...
* Replace "Idle" with common state in `backup`, fix sentence-case
* Update test_sensors.ambr
2025-03-30 14:56:36 +02:00
Norbert Rittel
8f96ccc835
Fix sentence-casing in a few strings of bmw_connected_drive
( #141816 )
...
* Fix sentence-casing in a few strings of `bmw_connected_drive`
Also replace "Standby" state with common string reference.
* Update test_select.ambr
2025-03-30 15:13:35 +03:00
Simone Chemelli
9ee79b87ee
Add full test coverage for Comelit switch platform ( #141738 )
...
* Add full test coverage for Comelit switch platform
* cleanup
2025-03-30 12:10:41 +02:00
Simone Chemelli
600aedc9a1
Add tests for Comelit cover platform ( #141740 )
...
* Add tests for Comelit cover platform
* cleanup up
2025-03-30 12:04:00 +02:00
J. Nick Koston
65261de7cc
Migrate emulated_roku to use runtime_data to fix flakey tests ( #141795 )
2025-03-30 11:55:58 +02:00
J. Nick Koston
d4970f81aa
Cleanup ESPHome update tests to avoid accessing integration internals ( #141786 )
...
We should not access DomainData directly in the test
2025-03-29 22:30:06 -10:00