Commit Graph

24493 Commits (4a8a674bd36cf0d5a1a325f9bfd6afe513564105)

Author SHA1 Message Date
Bouwe Westerdijk c8556f69e7
Bump plugwise to v1.4.3 (#128773) 2024-10-20 15:25:13 +02:00
Franck Nijhof 0b3f660626
Auto lower case username for Schlage auth flows (#128730) 2024-10-20 12:48:18 +02:00
tronikos 5f662988ff
Handle invalid zeroconf messages in Android TV Remote (#128819) 2024-10-20 09:56:30 +02:00
Joost Lekkerkerker 8ceecec5b8
Bump spotifyaio to 0.7.1 (#128807) 2024-10-20 09:49:23 +02:00
Paulus Schoutsen 28ff138370
Simplify custom component loading (#128813) 2024-10-20 09:47:27 +02:00
Álvaro Fernández Rojas ca4f971eb4
Fix Airzone Cloud climate temperature range (#128740) 2024-10-19 14:38:15 +02:00
starkillerOG 175a87f948
Catch Reolink LoginFirmwareError (#128590) 2024-10-19 13:02:29 +02:00
epenet f17c5bc334
Use new reauth helpers in samsungtv (#128729) 2024-10-19 11:24:41 +02:00
Allen Porter 5816342bed
Remove dead code and increase test coverage for google config flow (#128690) 2024-10-19 09:48:36 +02:00
Hans Kröner a815661de1
Add lighting effects to Hue lights managed by deCONZ (#128292)
* Add more effects for Philips Hue lights

* Update tests for light effects
2024-10-19 09:09:01 +02:00
Michael Hansen f21c8d895f
Block until config is retrieved when adding satellite entity to HA (#128685)
Block until config is retrieved
2024-10-18 16:01:18 -04:00
epenet 120e17fa1e
Improve logic for detecting unused ignore translations (#128441) 2024-10-18 17:59:06 +02:00
epenet 8c4b076746
Refactor rainforest_raven coordinator tests (#128591)
* Refactor rainforest_raven tests

* Remove assert

* Cleanup freezer

* Drop un-needed coordinator properties

* Cleanup remaining coordinator tests

* Improve

* Revert _DEVICE_TIMEOUT

* Ensure 100% coverage

* Use async_fire_time_changed
2024-10-18 16:00:42 +02:00
epenet 356e09091d
Add model_id to rainforest_raven device info (#128652)
* Remove single-use rainforest properties

* Add model_id
2024-10-18 15:50:34 +02:00
epenet bea13d039f
Use reauth_confirm in osoenergy (#128665) 2024-10-18 15:17:39 +02:00
Duco Sebel 1f8fd52103
Fix reload not triggered on DisabledError in HomeWizard (#128636)
* Fix reload not triggered on DisabledError in HomeWizard

* Update homeassistant/components/homewizard/coordinator.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Use helper and fix merge issue

* Add test to detect reload on DisabledError

* Wait until next update instead of a direct call to update

* Add doc why we reload

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-10-18 14:48:41 +02:00
Claudio Ruggeri - CR-Tech 49d534e779
Add list as possible values for State On/Off ModBus Switch (#127444)
* add possibility to set multiple val on state

* Add support for list also in state_off
2024-10-18 10:10:47 +02:00
epenet 5a0ef149a5
Use reauth helpers in google_sheets (#128587) 2024-10-18 10:04:03 +02:00
starkillerOG 2d90ffcbf0
Update Reolink config entry port info if needed (#128589) 2024-10-18 10:00:28 +02:00
epenet 5580c3fda0
Use snapshot assertion in rainforest_raven diagnostic tests (#128602) 2024-10-18 09:57:38 +02:00
epenet 10d26bf734
Use snapshot assertion in rainforest_raven sensor tests (#128604) 2024-10-18 09:50:04 +02:00
MarkGodwin 57ef175050
Add sensors to Omada (#127767)
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-10-18 09:48:06 +02:00
Duco Sebel 4251389c12
Remove ExternalDevice 'invalid ID' migration in HomeWizard (#128634) 2024-10-18 09:33:53 +02:00
G Johansson 6ff2ce1895
Use shorthand attribute in derivative sensor (#128610) 2024-10-18 09:33:02 +02:00
Markus Jacobsen 9037421a85
Bump mozart-api to 4.1.1.116.0 (#128573)
Bump API
Fix testing
2024-10-17 22:05:28 -04:00
Jan Morawiec 35ff3afa12
Refactor unittest tests to use pytest (#127770)
* Refactor unittest tests to use pytest

* Add type annotations

* Use caplog to assert logs

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-17 21:28:14 +02:00
Erik Montnemery 9d0701a62b
Improve camera tests (#128545) 2024-10-17 16:36:42 +02:00
David F. Mulcahey 065577c9ca
Keep ZHA entity enabled setting in sync with lib (#125472)
* Add ability to enable / disable entities in the ZHA lib

* disable entities at startup that are not enabled in HA

* fix IEEE lookup

* wrap in async_on_unload

* add test and correct lookup
2024-10-17 07:16:48 -04:00
Petar Petrov 8533f853c8
Increase Z-Wave fallback thermostat range to 0-50 C (#128543)
* Z-Wave JS: Increase fallback thermostat range to 0-50 C

* update test
2024-10-17 12:41:23 +02:00
epenet 906cecf087
Cleanup unused snapshots (#128549)
* Cleanup unused snapshots

* Cleanup a few more

* Cleanup systemmonitor

* Cleanup voip
2024-10-17 10:41:57 +02:00
puddly f6270d9cfc
Bump ZHA dependencies (#128539)
* Bump ZHA dependencies

* Remove unused ZHA color modes

* Rename `cluster` to `ota_cluster` in update tests to unshadow `cluster` in `endpoint_reply`

---------

Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
2024-10-16 22:15:00 -04:00
Julian 72f1c358d9
Fix translation string in guardian (#128535) 2024-10-16 22:09:15 +02:00
Jan-Philipp Benecke 4964470e9c
Remove deprecated panel_iframe integration (#128532) 2024-10-16 21:34:43 +02:00
Julian f4dfe7868b
Fix translation string in hyperion (#128384) 2024-10-16 21:28:17 +02:00
Jan-Philipp Benecke 82e9792b4d
Remove deprecated map integration (#128529) 2024-10-16 20:46:00 +02:00
Noah Husby af41a41046
Add select entity to Cambridge Audio (#128527)
* Add select entity to Cambridge Audio

* Add select entity to Cambridge Audio

* Update test name
2024-10-16 19:57:10 +02:00
Steven B. 59e5eb9a1c
Always use uv from virtual environment at runtime (#128371) 2024-10-16 19:42:25 +02:00
Klaas Schoute a0637a6ff8
Add port to config flow of P1 Monitor integration (#128324) 2024-10-16 19:40:20 +02:00
Joost Lekkerkerker 5497697cf2
Add diagnostics to Spotify (#128521) 2024-10-16 19:33:28 +02:00
epenet 0bc572787a
Add check for valid error code in translation checks in flows (#128445) 2024-10-16 19:03:24 +02:00
Álvaro Fernández Rojas 7c50b8185d
Update aioairzone-cloud to v0.6.7 (#128231) 2024-10-16 18:11:02 +02:00
epenet 350a27575f
Prevent leak of current_entry context variable (#128145) 2024-10-16 18:02:37 +02:00
Joost Lekkerkerker 494511e099
Migrate spotify to aiospotify (#127728) 2024-10-16 17:04:05 +02:00
Michael Hansen 11ac8f8006
Add conversation agent to Wyoming (#124373)
* Add conversation agent to Wyoming

* Remove error

* Remove conversation platform from satellite list

* Clean up

* Update homeassistant/components/wyoming/conversation.py

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Remove unnecessary attribute

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-10-16 09:07:56 -05:00
Michael Hansen bcac851677
Migrate Wyoming satellite to Assist satellite entity (#128488)
* Migrate Wyoming satellite to Assist satellite entity

* Fix tests

* Update homeassistant/components/wyoming/assist_satellite.py

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Update homeassistant/components/wyoming/assist_satellite.py

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-10-16 08:59:44 -05:00
Joost Lekkerkerker c0f19dd963
Reorder Google Assistant Traits (#127646) 2024-10-16 15:04:46 +02:00
epenet e5a07da0c9
Add checks for config entry state in async_config_entry_first_refresh (#128148) 2024-10-16 14:06:25 +02:00
Jan Bouwhuis ac6d893758
Correct type hints on MQTT tests (#128299) 2024-10-16 13:49:18 +02:00
epenet 9f2bdca9ad
Use unique_id_mismatch in aseko_pool_live reauth (#128339) 2024-10-16 13:47:33 +02:00
epenet c5046f7809
Add check for valid abort reason translation in option flows (#128444) 2024-10-16 13:41:15 +02:00
epenet 6442625a9d
Fix incorrect error strings in webmin (#128448) 2024-10-16 13:39:46 +02:00
epenet 5d079aacd6
Fix incorrect error strings in triggercmd (#128450) 2024-10-16 13:38:15 +02:00
epenet 0e7297873c
Add SOURCE_HASSIO to DISCOVERY_SOURCES (#128454) 2024-10-16 13:34:28 +02:00
Robert Resch dfb94d8917
Rename host to url in go2rtc config flow (#128508) 2024-10-16 13:33:47 +02:00
Joost Lekkerkerker ed445d0ab8
Add even more tests to Spotify (#128298) 2024-10-16 13:20:57 +02:00
Barry vd. Heuvel dddc1906c2
Add missing Weheat temperature sensors (#128452)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-16 11:53:39 +02:00
epenet 8ae8fa7ec9
Add SOURCE_SYSTEM to DISCOVERY_SOURCES (#128457) 2024-10-16 11:27:48 +02:00
Petar Petrov 1ff1b82fc7
Mark custom components that overwrite core (#127937) 2024-10-16 09:28:19 +02:00
Artur Pragacz 866f1e70a4
Fix default conversation agent tests (#128490) 2024-10-15 22:21:18 -05:00
Julian e273148a89
Fix translation string in lyric (#128386)
* Fix translation string in lyric

* Remove ignore_translations from lyric config_flow test
2024-10-15 22:10:56 +02:00
Michael Hansen 36a1eaedcf
Trim the text of todo and shopping list items in intents (#128456) 2024-10-15 11:44:32 -04:00
Artur Pragacz bb9f534259
Improve intent recognition in default conversation agent (#124282)
Use the same logic for custom sentences.
Prefer higher quality (longer) names.
2024-10-15 09:14:31 -05:00
hahn-th cf9e5ae5a0
Add support HmIP-BSL after firmware update to 2.0 to homematicip_cloud (#117657)
* Rebase

* Fix number of loaded entities

* Reduce redundant code

* Remove unneccessary import in test_light
2024-10-15 15:26:33 +02:00
Jordan Zucker d2db25c7dd
Refactor prometheus integration tests (#113849)
* Starting with a simple change

* And trying again but actually adding the new area to this

* And that's getting interesting

* Wanted to add some small things to gitignore too

* More metrics clean up

* The linter is harsh

* Need to adjust a ton of tests

* I was finally able to commit

* Trying to abstract metrics into a helper class

* Fixed some tests at least

* Making progress on tests

* Getting really close now

* Only 1 or 2 tests left to fix

* Only 1.5 tests left

* That's more than enough for tonight

* Got all the tests passing!

* Another pass at test clean up

* Fixed up all the tests, again

* More clean up needed

* Got device_class working just need to fix one test I broke

* Got all the existing tests working!

* Refactored helpers into a separate file

* I added some new tests! For the helpers, ironically

* Don't touch those files

* Don't include that either

* Added my first real test

* Rolling back some logic changes to focus solely on tests

* Curious what happens when I run the tests now

* Getting closer to making things pass

* Getting closer to a working pr now

* Keeping up with test fixes

* Getting much closer to something useful

* Saving piecemeal

* Getting closer to a final working version

* Now that's an improvement

* And moving a little forward

* And now I'm really inching closer

* Saving more complex test case fix

* And now only 3 tests left

* Getting close and only a few tests left

* I think I'm close with only 1 test left

* Does this mean the tests actually work now

* Was not using the helper classes anymore

* Now I'm really curious

* Need to rename the recently renamed class

* Was it really that easy? (No, it wasn't)

* Is this finally enough

* Also added another full percentage point of tests

* Trying to clean things up a bit more

* Now how does this look?

* Just a little more clean up

* Added a few more tests for the new helper functions

* Last pass on much better tests for this

* Oops, forgot to remove redundant tests

* Fix the fixtures

* Getting closer to something decent, I hope

* Another pass on the formatting of the number 1

* And yet another pass on these tests

* Tests cleaned up a bit more

* Minor updates as suggested

* Another pass on assert with metrics helper

* Now this is fully tested
2024-10-15 14:22:36 +02:00
epenet 2542ddd30a
Improve check for user-visible flows when checking translations in tests (#128434)
* Improve check for user-visible flows when checking translations in tests

* Fix nest (from DHCP)

* Ignore homeassistant_hardware

* Improve logic
2024-10-15 14:09:53 +02:00
Julian 260d919f80
Fix translation string in spotify (#128440)
* Fix translation string in spotify

* Remove ignore_translations from spotify config_flow test

* Fix formatting in config flow test for spotify
2024-10-15 14:00:34 +02:00
Joakim Sørensen fb7bed2ea0
Add WS endpoint to fetch the details of a backup (#128430)
* Add WS endpoint to fetch the details of a backup

* Shorten

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Adjust

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-10-15 13:00:34 +02:00
epenet 84b2c74057
Fail on unused ignore_translations fixture (#128422)
* Fail on unused ignore_translations fixture

* Cleanup melcloud

* Use pytest.fail

* Cleanup tplink

* Cleanup matter
2024-10-15 12:40:47 +02:00
Joakim Sørensen a14cb13194
Add BaseBackupManager as a common interface for backup managers (#126611)
* Add BaseBackupManager as a common interface for backup managers

* Document the key

* Update homeassistant/components/backup/manager.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-15 12:31:12 +02:00
epenet 117bc67a4c
Adjust homewizard translation strings (#128423)
* Add missing translation for homewizard

* Adjust
2024-10-15 11:34:20 +02:00
epenet 9930473390
Add missing translation for youtube (#128431) 2024-10-15 11:29:17 +02:00
epenet 3ba3fbf4a5
Add tests/components/conftest.py to core files (#128425) 2024-10-15 10:34:54 +02:00
Marc Mueller 2c00cd489e
Fix go2rtc test RuntimeWarnings (#128411) 2024-10-15 01:11:01 +02:00
Simon Lamon 866912d3f7
Keep the provided name when creating a tag (#128240)
* Keep the name

* Add patch

* Update homeassistant/components/tag/__init__.py

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

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-10-14 21:22:12 +02:00
epenet fdda0cc9cc
Use reauth/reconfigure helpers in tedee config flow (#128025)
* Use reauth/reconfigure helpers in tedee config flow

* Also cleanup unnecessary reconfigure_confirm
2024-10-14 18:01:47 +02:00
epenet f41494b7cc
Ensure config_flow abort reasons have translations (#128140)
* Ensure config_flow abort reasons have translations

* Ignore fake_integration in application_credentials

* Mark gardena_bluetooth as needs fixing

* Mark google as needs fixing

* Mark google_assistant_sdk as needs fixing

* Mark homewizard as needs fixing

* Mark homeworks as needs fixing

* Mark honeywell as needs fixing

* Mark jewish_calendar as needs fixing

* Mark lg_netcast as needs fixing

* Mark lifx as needs fixing

* Mark lyric as needs fixing

* Mark madvr as needs fixing

* Mark matter as needs fixing

* Mark melcloud as needs fixing

* Mark motioneye as needs fixing

* Mark ollama as needs fixing

* Mark philips_js as needs fixing

* Mark spotify as needs fixing

* Mark srp_energy as needs fixing

* Mark subaru as needs fixing

* Mark tplink as needs fixing

* Mark yolink as needs fixing

* Mark youtube as needs fixing

* Fix incorrect comment
2024-10-14 16:39:10 +02:00
Robert Resch f5b55d5eb3
Rewrite go2rtc binary handling to be async (#128078) 2024-10-14 15:32:00 +02:00
Josef Zweck cdb1b1df15
Add model_id to tedee (#128356) 2024-10-14 14:56:27 +02:00
epenet 1a0c3a49b9
Use async_update_reload_and_abort in awair (#128345) 2024-10-14 13:27:04 +02:00
epenet c4e2e9c4f0
Use reauth_confirm in azure_devops (#128349) 2024-10-14 13:24:08 +02:00
Andrew Jackson 7df973648c
Strip path from Mastodon base url (#127994) 2024-10-14 13:20:25 +02:00
epenet 25aea140be
Cleanup unnecessary reconfigure_confirm from config flows (#128086) 2024-10-14 12:57:15 +02:00
epenet d2bbfe1282
Refactor abode config flow tests (#128334)
* Refactor abode config flow tests

* Cleanup
2024-10-14 12:13:47 +02:00
epenet 6d72391ee1
Use reauth helpers in airvisual (#128335)
* Use reauth helpers in airvisual

* Cleanup unused code in tests
2024-10-14 11:46:14 +02:00
Josef Zweck 4c10ce6f40
Add model_id to lamarzocco (#128344) 2024-10-14 11:45:02 +02:00
Chris Talkington cb1e5a2412
Fix playing media via roku (#128133)
* re-support playing media via roku

* fixes

* test fixes

* Update test_media_player.py

* always send media type

* add description to options flow
2024-10-13 12:41:51 -05:00
Elias Wernicke e6e22dc0bf
Refactor todo tests (#128251)
refactor todo tests
2024-10-13 08:17:15 -07:00
Simone Chemelli e4f7ac6236
Add switch entity for Shelly scripts (#108171)
* introduce script switch only

* chore: add script switch test

* chore: apply review comments

* chore: fix tests

* chore: apply review comments
2024-10-13 15:11:40 +02:00
epenet 7e56b595a0
Do not link nextbus coordinator to config entry (#128151)
* Do not link nextbus coordinator to config entry

* Refactor tests and add specific failure test

* Use ConfigEntryNotReady

* Cleanup coordinator
2024-10-13 14:13:37 +02:00
epenet 3e56185a39
Use reconfigure helpers in axis config flow (#127976)
* Use reconfigure helpers in axis config flow

* Add string

* Update strings.json
2024-10-12 23:31:12 +02:00
Michael caf85fe61d
Fix printer uptime fluctuations in IPP (#127725)
* decrease uptime accuracy from seconds to minutes

* adjust tests

* calc uptime timestamp in coordinator

* bump pyipp to 0.17.0

* revert changes, just use the new printer.booted_at property

---------

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2024-10-12 13:22:03 -05:00
Jan Bouwhuis 3112682923
Mark mqtt as integration with single config entry (#128202) 2024-10-12 19:55:39 +02:00
Jan Bouwhuis edb30af441
Fix hassio data fetching over list[Repository] (#128206)
* Fix hassio data fetching over list[Repository]

* Parameterize store mock and add store data to sensor tests
2024-10-12 14:44:26 +02:00
Michael 8236a9529f
Mark integrations as single_config_entry in manifest [k-r] (#128191)
* mark integrations as single_config_entry in manifest

* fix owntracks test
2024-10-12 09:03:17 +02:00
Michael c50d0646ab
Mark integrations as single_config_entry in manifest [a-i] (#128189)
* mark integrations as single_config_entry in manifest

* fix ecobee tests

* fix iaqualink test
2024-10-12 08:59:57 +02:00
epenet abe02c3843
Cleanup unnecessary reconfigure_confirm in fritzbox config flow (#128087) 2024-10-12 08:42:59 +02:00
Michael 8e9e738bb8
Fix ci (dhcp tests) (#128207)
remove unused import
2024-10-12 02:20:54 +02:00
__JosephAbbey bd97a0dfe3
Add to-do list response target for ListAddItemIntent (#121970)
* Add todo list response target for ListAddItemIntent

* Delete .vscode/settings.json

* Fix imports

* Add test

* Formatting

* Fix test

---------

Co-authored-by: Tom Harris <tomharris@harrisnj.net>
Co-authored-by: Michael Hansen <mike@rhasspy.org>
2024-10-11 17:23:20 -05:00
Michael 07021dbd65
Use single_instance_allowed in hassio (#128060)
* use single_instance_allowed

* mark hassio as `single_config_entry`
2024-10-11 23:37:14 +02:00
Michael Hansen 8ee8421af7
Use device area/floor in HassGetState intent (#128197)
Use preferred area/floor in HassGetState intent
2024-10-11 16:08:43 -05:00
Marc Hörsken 6650d32055
Improve discovery of WMS WebControl pro by updating IP address (#128007) 2024-10-11 20:40:03 +02:00
G Johansson 2b2820018c
Remove legacy knx notify service (#128185) 2024-10-11 20:19:15 +02:00
Manu 8540343d7f
Add tests for Habitica integration (#126445)
* Add tests for sensor platform

* Add tests for switch platform

* Add tests for button platform

* Add tests for todo platform

* Add tests for todo platform

* Load json data fixtures

* Update snapshot

* Add fixtures

* test move todo

* parametrize todo tests, test drop notification

* test todo exceptions

* some minor improvements

* test setup retry

* Test update failed

* Test coordinator rate limit

* Test date utils

* Reduce scope of PR

* remove unused assert_mock_called_with  function

* update snapshot

* Update tests/components/habitica/test_init.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-11 20:03:23 +02:00
Michael Hansen 67e0ccf677
Use exposed error messages in Assist (#127503)
* Use exposed error messages

* Report expose errors

* Remove comment

* Relative import

* Rework expose check logic

* Delay creation of all names list, and skip config/hidden entities

* Clean up commented code and type issue

* Fix test

* Move assistant check
2024-10-11 13:06:03 -04:00
G Johansson a85d7af9e7
Remove deprecated notify service in ecobee (#128177) 2024-10-11 18:21:28 +02:00
G Johansson 39e63aee0c
Remove config entry import from lg_netcast (#128179) 2024-10-11 18:20:50 +02:00
J. Diego Rodríguez Royo 6a12a24d73
Migrate device models to entity descriptions and add localization & icons at Home Connect (#127870)
* Delete device models and use entity descriptions

* Home Connect localization & icons

* Update homeassistant/components/home_connect/strings.json

* Update homeassistant/components/home_connect/icons.json

* Fix tests

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-11 17:52:06 +02:00
epenet 63391717e7
Replace ValueError with deprecation in data update coordinator (#128082)
* Replace ValueError with deprecation in data update coordinator

* Rephrase
2024-10-11 17:24:47 +02:00
Steven B. 554629f37a
Fix ring realtime events (#128083) 2024-10-11 17:17:32 +02:00
Christopher Fenner 791c3cd955
Fix preset handling issue in ViCare (#128167)
* add test case

* fix test case

* fix issue

* change order
2024-10-11 17:15:16 +02:00
Thomas55555 6e53c93271
Fix model in Husqvarna Automower (#128168) 2024-10-11 17:05:13 +02:00
epenet 7097315079
Cleanup unnecessary reconfigure_confirm in fritz config flow (#128089) 2024-10-11 15:54:28 +02:00
Joost Lekkerkerker d50758197e
Add test for Spotify select source (#128160) 2024-10-11 14:33:34 +02:00
Erik Montnemery 9ff35d5a5a
Minor improvement of entity platform tests (#128158)
* Minor improvement of entity platform tests

* Fix snapshot
2024-10-11 14:14:29 +02:00
Joost Lekkerkerker 00f7bdbfaa
Add more Spotify tests for the media player (#127999)
* Add more Spotify tests for the media player

* Fix comments

* Rename test
2024-10-11 14:06:52 +02:00
Joost Lekkerkerker 71898d0c8c
Add snapshot testing to Spotify (#128032)
* Add snapshot testing to Spotify

* Fix
2024-10-11 13:58:04 +02:00
Teemu R. 1eea5b8a58
Increase tplink climate precision (#127996) 2024-10-11 13:15:30 +02:00
Álvaro Fernández Rojas 4c1b7add39
Update aioairzone to v0.9.4 (#127792) 2024-10-11 12:39:39 +02:00
Teemu R. 64693eaca2
Add reboot button for tplink (#127935)
* Add reboot button for tplink

* Add device_class, remove unnecessary translation and update fixtures

* update snapshot
2024-10-11 12:21:36 +02:00
kevdliu 50025971d8
Support open next and close next actions for shades (#125097)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-10-10 15:09:52 -05:00
Erik Montnemery 74ba8877d4
Improve entity registry test coverage (#128073) 2024-10-10 21:16:39 +02:00
Jan-Philipp Benecke 9f7eb36a1f
Remove deprecated speed limit lock entity from tessie (#128043)
Remove deprecated speedlimit lock entity from tessie
2024-10-10 17:51:10 +02:00
Phill (pssc) 0fcbfa996f
Add squeezebox API failure test (#128066)
* add api failure test

* Update tests/components/squeezebox/test_init.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-10 17:38:14 +02:00
G Johansson 2ab5e5d267
Remove deprecated restart service in modbus (#128059) 2024-10-10 17:30:50 +02:00
Erik Montnemery 5b7bd6a52f
Minor improvement of device registry tests (#128095) 2024-10-10 17:28:57 +02:00
Marc Hörsken 5e38bb7a32
Add scene support to WMS WebControl pro (#126081)
* Add scene support to WMS WebControl pro

* Update homeassistant/components/wmspro/scene.py

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

* Create a device per room instead of scene

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-10 15:44:18 +02:00
AlCalzone f446e42317
Support non-dimmable color lights in Z-Wave JS (#127808)
* Z-Wave JS: support non-dimmable color lights

* remove black_is_off light, support on/off/color

* fix: tests for on/off light

* fix: typo

* remove commented out old test code

* add test for off and on

* support colored lights without separate brightness control

* add test for color-only light

* refactor: extract color only light

* fix: preserve color when changing brightness

* extend tests

* refactor again

* refactor scale check

* refactor: remove impossible check

* review feedback

* review feedback

* fix discovery to handle all 3 switch CCs, limit search to same endpoint

* Update homeassistant/components/zwave_js/discovery.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/discovery.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* add test for Smart Switch 7 state

* Add type annotations

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-10 14:36:37 +02:00
kingy444 67f67a02f8
Fix casing on Powerview Gen3 zeroconf discovery (#128076) 2024-10-10 07:22:14 -05:00
Mike Degatano a9aa5ad229
Use aiohasupervisor for store APIs (#126780)
* Use aiohasupervosor for store addon info

* Use aiohasupervisor install addon

* Use aiohasupervisor for store info API

* Fix onboarding test

* Changes from feedback

* Move get_supervisor_client out of constructor

* Mock supervisor_client in tests

* Make property private
2024-10-10 10:27:20 +02:00
epenet f504c27972
Add ability to pass the config entry explicitly in data update coordinators (#127980)
* Add ability to pass the config entry explicitely in data update coordinators

* Implement in accuweather

* Raise if config entry not set

* Move accuweather models

* Fix gogogate2

* Fix rainforest_raven
2024-10-10 10:20:15 +02:00
Ian Hattendorf 4efb747389
Add Jellyfin remote entity (#126461)
* jellyfin: Add remote entity

This allows sending general commands via the
"Sessions/{sessionId}/Command" endpoint

* jellyfin: Add remote entity tests
2024-10-10 09:30:05 +02:00
Michael 347440019e
Use snapshot platform test helper in IPP (#127734)
* use snapshot_platform

* we don't need to check for amount of entities anymore
2024-10-09 19:28:22 -05:00
epenet 39891ffe60
Drop reconfigure_confirm step in trafikverket_camera (#128031)
* Drop reconfigure_confirm step in trafikverket_camera

* Update strings.json
2024-10-09 22:14:34 +02:00
G Johansson 9bbbb2cd3c
End deprecation for config entry import for folder watcher (#128056) 2024-10-09 21:25:55 +02:00
Steven B. 23a1046a8f
Allow single use of device class translations in tplink snapshot tests (#128022) 2024-10-09 18:12:21 +02:00
epenet 7c6b517672
Use reconfigure helpers in fronius config flow (#128001)
* Use reconfigure helpers in fronius

* Drop _async_abort_entries_match
2024-10-09 17:52:30 +02:00
epenet f6188949f3
Use reconfigure helpers in enphase envoy config flow (#127977) 2024-10-09 17:33:34 +02:00
epenet 78f4b28697
Use reauth/reconfigure helpers in trafikverket_weatherstation config flow (#128028) 2024-10-09 16:14:56 +02:00
epenet 3d1e57766a
Simplify jewish_calendar reconfigure flow (#128008)
* Simplify jewish_calendar reconfigure flow

* Adjust
2024-10-09 15:34:11 +02:00
Joost Lekkerkerker c096cc23df
Add tests for the Spotify media browser (#127857)
* Add tests for the Spotify media browser

* Add tests for the Spotify media browser

* Fix

* Fix comment

* Revert "Add tests for the Spotify media browser"

This reverts commit 59de6725d2.

* Add comment

* Add comment
2024-10-09 13:39:03 +02:00
Joost Lekkerkerker c97be4d0d1
Add Spotify media player tests (#127839)
* Improve Spotify mock

* Add Spotify media player tests

* Remove extra changes

* Remove available markets

* Remove available markets

* Fix tests
2024-10-09 12:09:42 +02:00
Manu fa53ec40d6
Remove deprecated yaml import from Habitica (#127946) 2024-10-09 11:17:19 +02:00
Erik Montnemery c22bbc5b91
Improve IssueRegistryItemSnapshot (#127949) 2024-10-09 10:57:04 +02:00
G Johansson 6f45e376da
Don't error with missing information in systemmonitor diagnostics (#127868) 2024-10-09 10:44:54 +02:00
Marc Hörsken f5797e3799
Update pywmspro to 0.2.1 to fix handling of unknown products (#127942) 2024-10-09 10:31:44 +02:00
epenet 99eb466223
Add updates argument to update_reload_and_abort helper (#127781)
* Add updates argument to update_reload_and_abort helper

* Also apply to airvisual_pro

* Rename argument

* docstring

* Use modern syntax

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

* Apply suggestion

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

* Apply suggestion

* Docstring

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-10-09 07:47:18 +02:00
Raman Gupta 2dec36f210
Fix zwave_js config validation for values (#127972) 2024-10-09 07:35:41 +02:00
G Johansson 666e8e133e
Cover state is enum (#127144)
* Change light state to use enum

* Adjust cover tests

* Update cover

* Fix covers

* Some tests

* More tests

* Fix tests

* Fix
2024-10-08 18:39:04 +02:00
G Johansson 959898e0fc
Fix merge_response template not mutate original object (#127865)
* Fix merge_response template not mutate original object

* Add comment
2024-10-08 18:35:06 +02:00
Ricardo Marques d41b9beb71
Fix custom account config flow setup (#127750) 2024-10-08 17:44:59 +02:00
Joost Lekkerkerker 00a037c786
Snapshot more platforms for Matter (#127541)
* Snapshot more platforms for Matter

* Fix

* Fix

* Fix

* Fix tests
2024-10-08 16:17:21 +02:00
epenet d8b51b4f2c
Avoid unknown error translation strings in anthropic (#127823) 2024-10-08 15:59:45 +02:00
epenet 5836a85340
Prevent `async_create_entry` from reauth/reconfigure flows (#127527)
* Prevent `async_create_entry` from reauth/reconfigure flows

* Adjust message

* Don't raise just yet

* Adjust message

* Fix string

* Remove invalid comment

* Add parameter

* Use count parameter

* Remove another branching
2024-10-08 15:19:58 +02:00
epenet 4e15556eeb
Cleanup unused variable in tests (#127930) 2024-10-08 15:14:23 +02:00
Erik Montnemery 0956dbb578
Rename `UnitOfConductivity` enum members (#127919)
* Rename UnitOfConductivity enum members

* Update test snapshots
2024-10-08 14:44:01 +02:00
Erik Montnemery 0c0ff855b1
Warn when async_update_entry creates a unique_id collision (#127929) 2024-10-08 14:42:41 +02:00
Andre Lengwenus 017ba509a6
Add device_class for LCN sensors (#127921)
* Add device_class for lcn sensor

* Rename device_class mapping dictionary
2024-10-08 14:24:48 +02:00
Joost Lekkerkerker 9d9b5af97f
Deprecate hassio service to update addon (#127927)
* Deprecate hassio service to update addon

* Update homeassistant/components/hassio/strings.json

Co-authored-by: Stefan Agner <stefan@agner.ch>

* service -> action

* service -> action; in the title as well

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-10-08 14:23:29 +02:00
Erik Montnemery cee7017d20
Reinitialize hassio discovery flow on config entry removal (#127088)
* Reinitialize hassio discovery flow on config entry removal

* Address review comments
2024-10-08 14:07:05 +02:00
epenet 4478f64002
Remove dead reconfigure code (#127398)
* Remove dead reconfigure code

* Adjust

* Start cleaning up test

* Prevent duplicate flows

* Add missing string

* Adjust two more tests

* Only filter out reauth flows

* Update strings.json

* Update config_entries.py

* Adjust tests

* Remove all checks - but add comment in tests

* Simplify PR
2024-10-08 13:35:04 +02:00
Robert Resch b56e22d4ee
Use homeassistant STUN server (#127922) 2024-10-08 12:25:20 +02:00
epenet 2c664efb3c
Add new helper for matching reauth/reconfigure config flows (#127565) 2024-10-08 10:07:36 +02:00
Erik Montnemery c87415023c
Correct cleanup of sensor statistics repairs (#127826) 2024-10-08 09:39:21 +02:00
epenet 1eb8d0fa1c
Don't abort on unknown error in nina config flow (#127908) 2024-10-08 09:10:26 +02:00
epenet 20205d7ff4
Fix incorrect translation key in crownstone (#127913) 2024-10-08 08:51:53 +02:00
dontinelli 99a40ae49f
Reverse unintended change of unique_id for solarlog (#127845) 2024-10-08 08:46:49 +02:00
functionpointer 9a0cb59830
Clean up Tibber service tests (#127334)
* Tibber: cleanup tests

* Tibber: cleanup tests
2024-10-08 07:56:21 +02:00
Richard Kroegel 54c4fb5f56
BMW: Add reconfiguration flow (#127726)
* BMW: Add reconfiguration flow

* Implement requested changes

--------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Abort if unique_id changes, small adjustments

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-10-08 07:42:10 +02:00
JEMcats eac930ad7f
Add Tesla Fleet grid status (#126438)
* Make Changes.

* Change to match suggested changes.

* add Possible States to island status

* remove storm watch active sensor.

* Update the test_*.ambr files

* Update *.ambr files

* Add more infromation to Grid Status

* Remove storm mode strings and icons
2024-10-07 22:18:40 +02:00
Marc Mueller 3107785947
Update fritzconnection to 1.14.0 (#127793)
* Update fritzconnection to 1.14.0

* fix fritz image tests

---------

Co-authored-by: mib1185 <mail@mib85.de>
2024-10-07 20:00:24 +02:00
Joost Lekkerkerker fe130b62c8
Replace Spotify fixtures (#127850)
Replace fixtures with real life ones
2024-10-07 18:00:54 +02:00
Joost Lekkerkerker f0363ac221
Improve Spotify mock (#127825)
* Improve Spotify mock

* Fix comments

* Fix comments

* Fix comments

* Fix comments

* Fix comments

* Fix comments

* Fix comments

* Fix comments
2024-10-07 17:36:39 +02:00
epenet 599076d6f4
Add missing patch in dnsip test (#127802) 2024-10-07 14:24:51 +02:00
epenet d99429463b
Use reauth helpers in permobil config flow (#127530) 2024-10-07 11:37:28 +02:00
epenet 8c0e96e6e6
Extend update_entry_and_reload tests (#127776) 2024-10-07 11:23:48 +02:00
Brett Adams ae6add1e77
Fix Island status in Teslemetry (#127504) 2024-10-07 10:15:25 +02:00
Arie Catsman 927943e07a
Add option to disable keep-alive for Enphase Envoy connections (#127603) 2024-10-07 10:13:23 +02:00
epenet c87a2ca335
Add default reconfigure reason in update_reload_and_abort (#127756)
* Add default reconfigure reason in async_update_reload_and_abort

* Simplify

* Fix test

* Add sample usage

* Remove multi-line ternary
2024-10-07 09:02:58 +02:00
Erik Montnemery 7ec911c4df
Correct typing in rediscovery tests (#127777) 2024-10-07 08:42:04 +02:00
René Klomp 605aaf955c
Migrate SMA unique id to str (#127732) 2024-10-07 08:19:55 +02:00
Brandon Rothweiler b4dfd08bc4
Update A. O. Smith integration to reflect upstream API changes (#127678) 2024-10-06 17:16:29 +02:00
Thomas55555 3cda93d001
Add work area sensors to Husqvarna Automower (#126931)
* Add work area sensors to Husqvarna Automower

* add exists function

* fix tests

* add icons

* docstring

* Update homeassistant/components/husqvarna_automower/sensor.py

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

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-06 16:10:26 +02:00
epenet e705ca83b2
Use reconfigure helpers in config tests (#127534)
Use async_update_reload_and_abort in config test
2024-10-06 16:06:55 +02:00
Joost Lekkerkerker f90ed9e9db
Remove expected lingering test fixture from Matter (#127713) 2024-10-06 16:00:40 +02:00
Michael 808d93d767
Remove obsolete entity count safeguards when using `snapshot_platform` test helper (#127736)
remove obsolete safeguards
2024-10-06 15:50:16 +02:00
J. Diego Rodríguez Royo 0d795aad16
Use BSH keys as unique ID's suffix at Home Connect (#126143)
* Use BSH keys as as unique id suffix instead of the simple description

* Update tests/components/home_connect/test_init.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-06 12:40:13 +02:00
David Knowles f6850c36fc
Fix problems with automatic management of Schlage locks (#127689)
Use the correct identifiers for existing lock devices
2024-10-06 07:42:39 +02:00
David Bonnes b69f2856bf
Add tests for evohome water_heater entities (#127611)
* initial commit

* move get_entity* helper to test

* parameterize with TEST_INSTALLS_WITH_DHW

* remove if from tests
2024-10-05 22:34:06 +01:00
David Bonnes 76a59338eb
Add tests for evohome climate entities (#127612)
* initial commit

* rename symbol (zon -> zone)

* move get_entity* helper function to test

* update snapshot
2024-10-05 22:32:12 +01:00
J. Nick Koston 0326e58c8a
Remove automatic linkage of doorbells to HomeKit accessories via device class occupancy (#127668) 2024-10-05 14:24:58 -05:00
Michael c043142b86
Improve handling of call deflection switches in AVM Fritz!Tools (#127592)
improve handling of call_deflection switches
2024-10-05 19:16:34 +02:00
Thomas55555 204bea8947
Return an error if no error key is provided in Husqvarna Automower (#127584)
return error
2024-10-05 19:13:21 +02:00
Jan Bouwhuis e54031e318
Improve mqtt sensor options validion logging (#127631)
* Improve mqtt sensor options validion logging

* Fix test
2024-10-05 13:31:42 +02:00
J. Nick Koston 24fbc366a6
Restore __slots__ to registry entries (#127481) 2024-10-05 12:16:52 +02:00
Erik Montnemery c104e66964
Fix snooz tests (#127468) 2024-10-05 12:13:52 +02:00
epenet c4fb4eb61b
Use common reconfigure string in bryant_evolution (#127561) 2024-10-05 12:12:14 +02:00
Richard Cox 62ae2a3bd5
Update Radarr config flow to standardize ports (#127620) 2024-10-05 12:05:11 +02:00
Brett Adams 213cc14494
Fix wake up in Tesla Fleet (#127615) 2024-10-05 12:04:10 +02:00
Sid b942569ce0
Remove enigma2 yaml import (#127597) 2024-10-05 10:00:23 +02:00
TimL 6ee03460d6
Disable by default smlight auto zigbee update switch (#126707)
disable by default auto zigbee update switch

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2024-10-05 00:56:11 +03:00
Tudor Sandu d9b077154e
Blueprints for template entities (#126971)
* Template domain blueprints

* Default blueprint for templates

* Some linting

* Template entity updates

* Load and use blueprints in config

* Added missing mapping methods for templates

* Linting

* Added tests

* Wrong schema type

* Hassfest errors

* More linting issues

* Refactor based on desired schema

In the [architecture discussion](https://github.com/home-assistant/architecture/discussions/1027), the template blueprint instance did not specify the platform (e.g. `binary_sensor`), but the initial implementation assumed that schema.

* Create default template blueprints on first run

* Moved TemplateConfig definition

This is to avoid circular references

* Corrected methods to find templates based on blueprints

* Corrected missing entity config information

* Added tests

* Don't use hass.data

Address comments https://github.com/home-assistant/core/pull/126971/#discussion_r1780097187

* Prevent creating blueprints during testing

* Combine 2 ifs

Address comment https://github.com/home-assistant/core/pull/126971/#discussion_r1780160870

* Improve test coverage

* Prevent template component from dirtying test env

* Remove useless hard-coded validation

* Improve code coverage to 100%

* Address review comments

* Moved helpers in helpers.py

As per comment https://github.com/home-assistant/core/pull/126971#discussion_r1786539889

* Fix blueprint source URL

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-04 16:47:29 +02:00
epenet 8bbbaae290
Use HassKey in backup (#127546)
* Use HassKey in backup

* Use DATA_MANAGER
2024-10-04 16:01:50 +02:00
Joost Lekkerkerker ebfa2fb1d0
Strip the NYT Games token (#127548) 2024-10-04 12:53:35 +02:00
epenet 8b9b65d3f1
Use reauth helpers in spotify config flow (#127532)
Use async_update_reload_and_abort in spotify
2024-10-04 11:13:03 +02:00
Joost Lekkerkerker 07704b8511
Add more fixtures to the matter fixture (#126761)
* Add more fixtures to the matter fixture

* Add Valve
2024-10-04 09:24:06 +02:00
epenet 6a44d66fed
Fix reolink tests (#127525) 2024-10-04 09:16:49 +02:00
Maciej Bieniek 1290f18ed4
Add support for Shelly CCT light (#126989)
* Initial support for cct lights

* Move properties to the RpcShellyCctLight class

* Fix entity names

* Add async_remove_orphaned_entities() function

* Do not return

* Fix tests

* Combine async_remove_orphaned_virtual_entities and async_remove_orphaned_entities

* Remove SHELLY_PLUS_RGBW_CHANNELS from const

* Add tests

* Use _attr*

* Check ColorMode.COLOR_TEMP

* Add sensors for CCT light

* Remove removal condition

* Remove orphaned sensors

* Cleaning

* Add device temperature sensor for CCT light

* Simplify async_remove_orphaned_entities()

* Comment

* Add COMPONENT_ID_PATTERN const

* Call async_add_entities once

* Suggested change

* Better type for keys

* Do not call keys()
2024-10-04 08:49:35 +02:00
David Bonnes 49e634a62f
Convert evohome's test factory into an async generator (#126925) 2024-10-04 08:29:36 +02:00
Erik Montnemery 8754b54d81
Fix config entry unique_id collision in tplink tests (#127522) 2024-10-04 08:24:56 +02:00
epenet c191a7cfdb
Fix lingering tasks in snooz tests (#127523) 2024-10-04 08:24:01 +02:00
J. Nick Koston 6eb49991a4
Add pylint rule for cached_property (#127482) 2024-10-03 17:53:55 -05:00
Michael 1dd59375f6
Add re-authemtication flow to AVM FRITZ!Box Call Monitor (#127497) 2024-10-03 22:36:41 +02:00
Erik Montnemery 48a07d531c
Remove assumption in ConfigEntryItems about unique unique_id (#127399) 2024-10-03 22:27:15 +02:00
J. Nick Koston db494de809
Restore __slots__ to core objects (#127441) 2024-10-03 22:23:47 +02:00
Joost Lekkerkerker 48a6dabc5b
Remove Spider integration (#127346) 2024-10-03 21:44:30 +02:00
Erik Montnemery 0ae0047246
Fix config entry unique_id collision in lamarzocco tests (#127484) 2024-10-03 21:39:39 +02:00
J. Nick Koston 0f29fd3e10
Switch to using fast cached_property implementation in propcache (#127339) 2024-10-03 13:11:02 -05:00
J. Nick Koston e2b1ef053f
Cache serialization of config entry storage (#127435) 2024-10-03 19:51:09 +02:00
Erik Montnemery a2c85a0ac2
Remove test workaround from snooz (#127465) 2024-10-03 18:18:08 +02:00
epenet f837369ef0
Use reauth helpers in electric_kiwi config flow (#127414)
* Mark electric_kiwi as single_config_entry

* Adjust

* Use reauth helpers in electric_kiwi config flow
2024-10-03 18:02:55 +02:00
J. Nick Koston 41fcf58b80
Fix bluetooth tests to not create the same config entry twice (#127461) 2024-10-03 10:37:34 -05:00
Allen Porter c38f23400c
Don't add the same config entry id twice in google tests (#127457)
Don't add the same config entry id twice in the test
2024-10-03 17:23:58 +02:00
Erik Montnemery 62b449e52c
Fix config entry unique_id collision in proximity (#127456) 2024-10-03 17:22:40 +02:00
starkillerOG 85ae66d276
Reolink auto add new cameras/chimes (#126268) 2024-10-03 16:51:27 +02:00
epenet 045d96cdd1
Use async_update_reload_and_abort in aseko_pool_live config flow (#127433)
* Use async_update_reload_and_abort in aseko_pool_live config flow

* block_till_done
2024-10-03 14:39:17 +02:00
Stefan Agner abf3da2fa1
Set default Matter fabric label (#127252) 2024-10-03 12:36:24 +02:00
epenet 7d3d693fe8
Align config flow reconfigure step test helper with frontend (#127329)
* Align config flow reconfigure step with frontend

* Update common.py

* Update common.py

* Adjust

* Adjust

* Fix test

* Adjust
2024-10-03 10:21:23 +02:00
Robert Resch 04860ae1d2
Add go2rtc and extend camera integration for better WebRTC support (#124410) 2024-10-03 09:20:03 +02:00
Erik Montnemery a0a90f03a8
Improve generic camera preview tests (#127382) 2024-10-03 09:13:54 +02:00
G Johansson 0fde5c21b7
Add reconfigure flow to trafikverket_camera (#127355) 2024-10-03 01:25:47 +02:00
polgarc c4cc9f8489
Add line numbers to swiss-public-transport (#127332)
* add line numbers

* keep only one line sensor

* fix unt tests
2024-10-03 01:25:17 +02:00
Stefan Agner 88ad7e98e0
Store instance name in Thread router discovery (#127253)
* Store instance name in Thread router discovery

Store the DNS-SD instance name in the Thread router discovery message.
The instance name is the actual name given to a Thread border router,
e.g. when configuring the name of a Thread border router in Apple Home
the name appears as the DNS-SD instance name. This will allow to make
the Thread border router list more user friendly.

* Use instance_name_from_service_info to get instance name
2024-10-02 21:41:55 +02:00
G Johansson a3b1a30d06
Add reconfigure step to trafikverket weather (#127140)
* Add reconfigure step to trafikverket weather

* Use helper

* Fix

* Fix review comments
2024-10-02 21:04:00 +02:00
Steven Looman f8b192bd94
Handle the correct exception type when subscribing to the router service returns an error in the upnp component (#127006)
* Catch the right exception when handling subscription errors

* Assert device is forced to poll
2024-10-02 20:55:25 +02:00
Erik Montnemery 4c6ab3921a
Store modern_forms flow data in flow handler attributes (#127175) 2024-10-02 19:59:44 +02:00
Erik Montnemery 1dc1fd421b
Use ConfigFlow.has_matching_flow to deduplicate tplink flows (#127164) 2024-10-02 19:59:24 +02:00
Paul Bottein c306ebed49
Fix device id support for alarm control panel template (#127340) 2024-10-02 19:04:36 +02:00
Mark Grandi c265c91ef2
Add protocol upload / download sensors to Deluge (#119203)
* Add Protocol Upload/Download for Deluge

* add unit test and fix typo in sensor.py

* remove unneeded import

* rename/unify the translation keys and entries in const.py

* split out const.py items into DelugeSensorType to avoid confusion with DelugeGetSessionStatusKeys

* change DelugeGetSessionStatusKeys to be a regular enum to satisfy mypy
2024-10-02 16:44:56 +02:00
starkillerOG 3184951625
Add sensor for total installations and integrations to Analytics Insights (#127248)
* Add sensor for total installations and integrations

* Fix tests

* Use pytest fixture
2024-10-02 16:25:27 +02:00
Marc Mueller ea115e0481
Fix telegram_bot tests for Python 3.13 (#127293) 2024-10-02 14:15:01 +02:00
Erik Montnemery 2fdde24024
Remove the Google Domains integration (#127278) 2024-10-02 13:58:19 +02:00
epenet 21266e1c68
Add config_flow helper to get reauth/reconfigure config entry (#127115)
* Add config_flow helper to get config entry from context

* Simplify

* Apply to aussie_broadband

* Another example

* Rename and adjust docstring

* Simplify

* Add test

* Refactor to hide context

* Raise

* Improve coverage

* Use AttributeError

* Use ValueError

* Raise UnknownEntry
2024-10-02 12:00:07 +02:00
Erik Montnemery 3f1acdc9ec
Make recorder WS command recorder/clear_statistics wait (#127120) 2024-10-02 10:43:40 +02:00
epenet 9873371413
Use start_reconfigure_flow in config flow tests (#127191)
* Use start_reconfigure_flow in config flow tests

* Adjust fritz
2024-10-02 10:01:15 +02:00
Erik Montnemery 2a2af01d12
Make recorder WS command recorder/update_statistics_metadata wait (#127179) 2024-10-02 09:56:36 +02:00
functionpointer 5bd2d27488
Fix Tibber get_prices when called with aware datetime (#123289)
* Tibber: Add extra test to expose aware/naive datetime issue

* Tibber: Fix get_prices action not working with aware datetimes

* Tibber: Simplify comparison

* Tibber: Combine timezone tests into single parametrized one

* Tibber: Split test again to prevent if statement
2024-10-02 08:43:31 +02:00
Erik Montnemery 47985a589e
Ensure frontier_silicon config flow title_placeholders items are [str, str] (#127197) 2024-10-02 08:26:51 +02:00
Erik Montnemery 375d47ee3a
Use ConfigFlow.has_matching_flow to deduplicate yeelight flows (#127165) 2024-10-02 08:25:46 +02:00
Martin Hjelmare e3e68dad36
Revert "Support Z-Wave JS dimming lights using color intensity (#122639)" (#127256)
This reverts commit c7cfd56b72.
2024-10-02 06:48:47 +02:00
Erik Montnemery 6d65d6bcf6
Don't create statistics issues when sensor is unavailable or unknown (#127226) 2024-10-01 22:08:48 +02:00
Bouwe Westerdijk 0616bc7fec
Improve / clean up Plugwise config_flow code (#127238) 2024-10-01 21:52:16 +02:00
Bill Flood dd478fe681
Fix Tailwind cover exception when door is already in the requested state (#124543) 2024-10-01 20:51:12 +02:00
Artur Pragacz 98a86c7636
Improve code of normalized name registry (#125282) 2024-10-01 11:20:52 -05:00
Erik Montnemery 4060705d87
Use ConfigFlow.has_matching_flow to deduplicate samsungtv flows (#127235) 2024-10-01 17:56:38 +02:00
epenet 3b7ae1639c
Use reconfigure_confirm in homeworks config flow (#127218)
* Use reconfigure_confirm in homeworks config flow

* Fix tests
2024-10-01 15:17:50 +02:00
epenet 3fb7547d4d
Use reconfigure_confirm in enphase_envoy config flow (#127221) 2024-10-01 15:11:37 +02:00
Martin Hjelmare bb70a0feb2
Fix Z-Wave rediscovery (#127213) 2024-10-01 14:42:31 +02:00
epenet 44eb4e0c9e
Use reconfigure_confirm in google_travel_time config flow (#127220) 2024-10-01 14:41:15 +02:00
Erik Montnemery 95a79130a2
Add missing None-check in roomba config flow (#127212) 2024-10-01 14:31:35 +02:00
epenet 9d557f47b7
Use reconfigure_confirm in lcn config flow (#127217) 2024-10-01 14:29:31 +02:00
epenet c654d3283e
Use reconfigure_confirm in vallox config flow (#127214) 2024-10-01 14:25:32 +02:00
epenet 8e6b6269a7
Fix reconfigure_confirm logic in madvr config flow (#127216) 2024-10-01 14:25:14 +02:00
epenet a2404e7fb8
Use reconfigure_confirm in solarlog config flow (#127215)
* Use reconfigure_confirm in solarlog config flow

* Fix test
2024-10-01 14:24:44 +02:00
Erik Montnemery 3052eca564
Remove unused custom flow context key 'name' from wyoming (#127182) 2024-10-01 12:25:39 +02:00
epenet b95dfe2b00
Add test helper for starting reconfiguration flow (#127154) 2024-10-01 12:18:07 +02:00
Allen Porter c5ebd53079
Add a working location google calendar entity (#127016) 2024-10-01 12:14:23 +02:00
Erik Montnemery 4ceff8cabf
Use ConfigFlow.has_matching_flow to deduplicate lifx flows (#127163) 2024-10-01 11:20:50 +02:00
Erik Montnemery d9bba25f67
Store toon flow data in flow handler attributes (#127180) 2024-10-01 11:15:54 +02:00
G Johansson de6ca56504
Add config flow validation that calibration factor is not zero (#127136)
* Add config flow validation that calibration factor is not zero

* Add test
2024-09-30 21:30:28 +02:00
Joost Lekkerkerker 10805805fe
Add devices to Withings (#126853) 2024-09-30 21:06:51 +02:00
starkillerOG 0f4c50e83c
Mark Reolink camera entities as unavailable when camera is offline (#127127)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-09-30 19:00:37 +02:00
Martin Hjelmare 0a99c1c633
Bump zwave-js-server-python to 0.58.1 (#127114)
* Bump zwave-js-server-python to 0.58.1

* Update tests
2024-09-30 18:35:14 +02:00
epenet 86a95013b6
Use start_reauth_flow helper in ezviz and netatmo tests (#127100)
* Use start_reauth_flow helper in netatmo tests

* Use start_reauth_flow helper in ezviz tests
2024-09-30 16:38:34 +02:00
Sven Sager 74931071de
Use scheduled current preset (if set), when setting HVAC mode in AVM Fritz!Smarthome (#126044)
* Use temperature of current preset when set fritz HVAC mode to HEAT

If the HVAC mode of the Fritzbox thermostats changes from `HVACMode.OFF`
to `HVAMode.HEAT`, the current preset (COMFORT / ECO) should be
observed. Depending on the status of the current preset, the set
temperature of comfort / eco is set as the new temperature.

* fixup do not use value_scheduled_preset

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Add current_preset value to test_set_hvac_mode

The current_preset parameter allows the mock to be set to an active
preset. When setting HVACMode.HEAT, the respective temperature of the
ECO/COMFORT preset should be set.

* fixup Use the updated value_scheduled_preset function

To distinguish which temperature should be used when setting the
`HVAMode.HEAT`, `value_schedules_preset` is now used again, which has
been updated since the first commit. If no schedule is active, the
comfort_temperature is used. Otherwise, the respective temperature of
the current preset.

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-09-30 16:29:39 +02:00
IceBotYT 927813ab3b
Raise HomeAssistantError in entity action calls in Nice G.O. (#126439) 2024-09-30 15:36:10 +02:00
epenet d96fd518e7
Use HassKey in azure_data_explorer (#127087)
* Use HassKey in azure_data_explorer

* Adjust tests

* Adjust

* Remove test
2024-09-30 14:45:37 +02:00
epenet 07fa1fa771
Move monzo test (#127101)
* Move monzo test

* Update tests/components/monzo/test_init.py
2024-09-30 14:43:23 +02:00
Christopher Fenner 404b3fcd03
Add support for room sensors in ViCare integration (#125243)
* Add room sensors

* set humidity device class

* add labels

* Create RoomSensor2.json

* Create RoomSensor1.json

* Update conftest.py

* Create test_sensor.py

* enable E3_RoomSensor

* use setup_integration

* fix ruff findings

* add test case

* fix entity id

* Apply suggestions from code review

* update

* fix findings

* reuse labels

* Apply suggestions from code review

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

* Apply suggestions from code review

* fix test snapshot

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-30 14:32:04 +02:00
epenet e1db5f3cac
Use start_reauth_flow helper in switcher_kis tests (#127098) 2024-09-30 15:28:33 +03:00
epenet 4bb768f39c
Add test for start_reauth_flow test helper (#127093)
* Improve docstring in start_reauth_flow

* Add test

* Make private

* Make fully private until actually needed
2024-09-30 14:28:13 +02:00
Joost Lekkerkerker 352987db7e
Make Laundrify unique id a string (#127092) 2024-09-30 13:21:20 +02:00
G Johansson 92a6f231a9
Workday raise issues only to next year (#126997)
* Workday - raise issues only for current and next year

* variable
2024-09-30 13:08:58 +02:00
G Johansson a44bf164e5
Add select volume to yale_smart_alarm (#127005) 2024-09-30 12:55:09 +02:00
Jan Bouwhuis f99b7d8b78
Start mqtt integration discovery config flow only once if config has not changed (#126966)
* Start mqtt integration config flow only once

* Remember last config message

* Filter out instead of unsubscribing the intehration discovery topic

* Follow up comments from code review
2024-09-30 12:44:40 +02:00
rappenze 0672e1a1ea
Add power sensor detection in fibaro integration (#126964)
* Add power sensor detection in fibaro integration

* Better solution plus test

* Update homeassistant/components/fibaro/sensor.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-30 12:01:27 +02:00
Shai Ungar dce51b02c8
Fix timestamp isoformat in seventeentrack (#127052)
fix timestamp isoformat
2024-09-30 11:45:54 +02:00
epenet 301543d3d0
Use config entry runtime_data in atag (#127084) 2024-09-30 11:06:07 +02:00
epenet 3caf6c0e31
Move atag coordinator to separate class (#127071) 2024-09-30 10:21:04 +02:00
epenet dec03d4d25
Use config entry runtime_data in awair (#127073) 2024-09-30 10:11:21 +02:00
epenet 4c8027aefa
Use config entry runtime_data in android ip webcam (#127080) 2024-09-30 10:08:04 +02:00
J. Nick Koston e87542e091
Fix removing nulls when encoding events for PostgreSQL (#127053) 2024-09-30 09:01:41 +02:00
Jan Bouwhuis b573e5a2b3
Allow `null` / `None` value for non numeric mqtt sensor without warnings (#127032)
Allow `null` / `None` value for mqtt sensor without warnings
2024-09-30 07:05:12 +02:00
YogevBokobza be11d1cabf
Add Light support for Switcher Runner S11 (#126402)
* switcher add s11 light support

* switcher fix linting

* switcher fix linting

* switcher fix linting

* switcher fix linting

* Update homeassistant/components/switcher_kis/light.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* Update homeassistant/components/switcher_kis/light.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* Switcher fix based on requested changes

* switcher fix light tests

* Add translations

* Remove obsolete default

* Remove obsolete default

* Update tests/components/switcher_kis/test_light.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* switcher fix based on requested changes

---------

Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-09-29 13:20:21 +03:00
Raul Camacho 5399e2b648
Add Local Calendar ics events import on calendar creation (#117955)
* add optional config_flow step of uploading .ics file to import local calendar events

* feat: add unit test for import_ics step

* fix: remove unneeded test patch

* feat: add helper for moving ics to storage location

* move helper to config_flow

* ruff

* fix tests; add test for invalid ics content

* Update homeassistant/components/local_calendar/config_flow.py

* Update import flow with radio button and improved text

Signed-off-by: Allen Porter <allen.porter@gmail.com>

* Remove commented out code

* Update with lint fixes

* Apply suggestions from code review

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

---------

Signed-off-by: Allen Porter <allen.porter@gmail.com>
Co-authored-by: Allen Porter <allen.porter@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-09-28 22:15:24 -07:00
G Johansson ddfe790995
Bump smhi-pkg to 1.0.18 (#126999) 2024-09-28 17:17:57 +02:00
Tsvi Mostovicz 52c358e120
Add reconfigure flow for Jewish Calendar (#126773)
* Add reconfigure flow for Jewish Calendar

* Use async_update_reload_and_abort
2024-09-28 13:59:11 +02:00
Josef Zweck d9eb419ecc
Add translation for tedee exceptions (#126963) 2024-09-27 22:21:01 +02:00
G Johansson 2ff88e7baf
Add preview to statistics (#122590) 2024-09-27 21:09:42 +02:00
Josef Zweck 2e1732fadf
Add proper exception handling to lamarzocco (#125913) 2024-09-27 21:04:01 +02:00
G Johansson 57e041171b
Add preview to mold_indicator (#125530) 2024-09-27 20:56:02 +02:00
Joakim Plate c81a4f8633
Translate exception from fjäråskupan (#126673) 2024-09-27 19:23:24 +02:00
Erik Montnemery 4599d1650b
Use ConfigFlow.has_matching_flow to deduplicate flux_led flows (#126888) 2024-09-27 19:22:00 +02:00
Erik Montnemery c5b4892596
Adjust BaseEditConfigView.__init__ (#126729) 2024-09-27 19:08:12 +02:00
Erik Montnemery 46812777e2
Use ConfigFlow.has_matching_flow to deduplicate yalexs_ble flows (#126899) 2024-09-27 19:07:23 +02:00
Steven B. 33d0343089
Extend dhcp discovery flow for ring integration (#126661) 2024-09-27 19:03:43 +02:00
Jan Rieger cda62a4ff3
Add missing icons to unifi (#126934) 2024-09-27 18:50:00 +02:00
Erik Montnemery 495faf5033
Improve statistics issue title (#126851) 2024-09-27 18:32:20 +02:00
Jan Rieger 2d68f9a986
Use icon translations in unifi (#126903)
* Use icon translations in unifi

* Update snapshots

* Add state icons

* Address feedback

* Update snapshot
2024-09-27 17:43:25 +02:00
Jan Bouwhuis 7fde2e2fe0
Do not unsubscribe mqtt integration discovery if entry is already configured (#126907)
* Do not unsubscribe mqtt integration discovery if entry is already configured

* Test cases without unsubscribe
2024-09-27 17:28:51 +02:00
Michael Hansen bd4f3b0553
Change Assist satellite state names (#126926)
* Change state names

* Update homeassistant/components/assist_satellite/strings.json

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-27 11:11:23 -04:00
Brett Adams cad87f51a3
Code quality improvements for Teslemetry (#123444) 2024-09-27 15:06:09 +02:00
Erik Montnemery 66ab90b518
Add EntityIDPostMigration data migrator class (#125307) 2024-09-27 14:58:34 +02:00
Joost Lekkerkerker f64e542879
Fix Evohome snapshots (#126915) 2024-09-27 14:55:44 +02:00
Joost Lekkerkerker 7c58476af9
Add unique id migration to Geniushub (#122330) 2024-09-27 14:54:47 +02:00
Joost Lekkerkerker 308f25fe4c
Migrate Nexia unique id to str (#126911) 2024-09-27 14:35:08 +02:00
Erik Montnemery 9f2ba6bc2c
Use ConfigFlow.has_matching_flow to deduplicate plugwise flows (#126896) 2024-09-27 14:32:36 +02:00
rubenbe b3b5d9602a
Add RSS description to Feedreader event (#126681) 2024-09-27 13:46:48 +02:00
David Bonnes 2d16732972
Set the default time zone for evohome tests (#126679) 2024-09-27 13:44:47 +02:00
epenet 94efd3e230
Cleanup sensor tests (#126881) 2024-09-27 13:43:24 +02:00
Erik Montnemery 59a690f214
Use ConfigFlow.has_matching_flow to deduplicate homekit_controller flows (#126894) 2024-09-27 13:41:55 +02:00
Joost Lekkerkerker a3ec4db9cc
Update airgradient device sw_version when changed (#126902) 2024-09-27 13:21:35 +02:00
Michael ffa6b5fcb2
Use two words for Nautical miles unit (#126905) 2024-09-27 13:16:13 +02:00
Joost Lekkerkerker 1ebcc34e66
Fix restoring state class in mobile app (#126868) 2024-09-27 11:37:28 +02:00
Joost Lekkerkerker 18fd00d0c2
Add diagnostics platform to airgradient (#126886) 2024-09-27 11:35:35 +02:00
J. Nick Koston 9ec26a9be5
Fix getting the current host for IPv6 urls (#126889) 2024-09-27 11:26:35 +02:00
Erik Montnemery 3c0be47d3c
Add FlowManager.async_has_matching_flow (#126804)
* Add FlowManager.async_flow_has_matching_flow

* Revert changes from the future

* Apply suggested changes to apple_tv config flow

* Rename methods after discussion

* Update homeassistant/data_entry_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Move deduplication functions to config_entries, add tests

* Adjust tests

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-27 10:51:36 +02:00
Michael 26b5dab12b
Add `nmi` (nautical miles) as valid distance unit (#124723) 2024-09-27 10:40:59 +02:00
J. Nick Koston 75ae6a8087
Fix getting the host for the current request (#126882) 2024-09-27 03:36:05 -05:00
David Bonnes cff9e9abab
Refactor evohome test fixtures for improved testing (#126781) 2024-09-27 09:40:52 +02:00
Paulus Schoutsen 471c68f653
Update the Selected Pipeline entity name (#126845) 2024-09-26 20:38:51 +02:00
Michael Hansen 9db5b481be
Fix ESPHome and VoIP Assist satellite entity names (#126229)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-09-26 20:22:09 +02:00
Joost Lekkerkerker 6e12726b11
Use Parametrizing in Matter tests (#126759)
* Overhaul matter tests

* Overhaul

* Remove matter_client where obsolete

* Move snapshots to the top

* Use usefixtures

* Add Valve
2024-09-26 19:40:20 +02:00
epenet 6c539cd2d8
Improve type hints in template config_flow tests (#126803)
Improve type hints in template tests
2024-09-26 19:25:33 +02:00
Joost Lekkerkerker 8d428acbbb
Bump nyt_games to 0.4.2 (#126834)
* Bump nyt_games to 0.4.1

* Bump nyt_games to 0.4.1

* Bump nyt_games to 0.4.2
2024-09-26 18:03:11 +02:00
Noah Husby 7afad1dde9
Bump aiorussound to 4.0.5 (#126774)
* Bump aiorussound to 4.0.4

* Remove unnecessary exception

* Bump aiorussound to 4.0.5

* Fixes

* Update homeassistant/components/russound_rio/media_player.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-26 14:38:36 +02:00
epenet 5fb9537d6d
Use pytest.mark.usefixtures for start_ha in template tests (#126805) 2024-09-26 14:00:52 +02:00
Marc Mueller c1b24e6ba2
Small typing improvements (#126818)
* Add from __future__ import annotations

* Use PEP 695 type aliases

* Fix generator typing
2024-09-26 13:51:27 +02:00
starkillerOG 1395baef01
Remove Reolink Home Hub main level switches (#126697)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-09-25 21:52:26 +02:00
David Bonnes 90dcb02429
Remove unnecessary patch from evohome tests (#126760) 2024-09-25 21:52:03 +02:00
Steven B. 4f0211cdd8
Deprecate tplink alarm button entities (#126349)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-25 14:47:40 -05:00
G Johansson c6a1b9fc39
Change Climate set temp action for incorrect feature will raise (#126692)
* Change Climate set temp action for incorrect feature will raise

* Fix some tests

* Fix review comments

* Fix tesla_fleet

* Fix tests

* Fix review comment
2024-09-25 21:16:14 +02:00
Erik Montnemery 7d61cb1ef5
Remove unignore flow (#126765) 2024-09-25 20:29:14 +02:00
Thomas55555 f53411b95a
Bump aioautomower to 2024.9.3 (#126769)
* Bump aioautomower to 2024.9.3

* tests
2024-09-25 20:28:22 +02:00
Ludovic BOUÉ 6d1e5886ec
Add Valve platform to Matter integration (#123311)
* Create water_valve.py

* Update water_valve.py

ValveEntity

* Update water_valve.py

ValveDeviceClass

* Update water_valve.py

* Update water_valve.py

OperationalStatus

* Update water_valve.py

* Update water_valve.py

Commands

* Update water_valve.py

Platform.VALVE

* Update water_valve.py

* Update water_valve.py

operational_status

* Update water_valve.py

current_valve_position

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

attributes

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Open command

* Match Valve entity methods

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* ruff-format

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

Attributes.CurrentLevel

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

async_set_valve_position

* Update water_valve.py

* Update water_valve.py

Bitmaps

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update homeassistant/components/matter/water_valve.py

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>

* Update homeassistant/components/matter/water_valve.py

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update discovery.py to add WaterValve

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update discovery.py

* Update discovery.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Update water_valve.py

* Rename water_valve.py to valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* Create test_valve.py

* Update test_valve.py

* Update test_valve.py

* Update test_valve.py

* Update test_valve.py

* Update test_valve.py

* Update test_valve.py

* Update test_valve.py

* Update test_valve.py

* Update test_valve.py

* Create valve.json

* Update air-purifier.json

* Revert "Update air-purifier.json"

This reverts commit b68dce0ccc81bc6fb1db36191de1c296ce54cac3.

* Update valve.json

* Update valve.json

* Update valve.json

* Update test_valve.py

* Update valve.json

* Update test_valve.py

* Update valve.json

* Update valve.json

* Update valve.json

* Update test_valve.py

* Update valve.py

* Update valve.py

* Update valve.py

* add tests

* cleanup

* Clean up variable

* Format

* add tests for state updates

* adjust

* add tests for position

---------

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-25 20:19:10 +02:00
puddly 0a44c9456c
Bump ZHA to 0.0.34 (#126766) 2024-09-25 18:44:51 +02:00
Joost Lekkerkerker 3810c3cbaf
Improve trigger schema validation to ask for `trigger` instead of `platform` (#126750)
* Add check for missing trigger

* Fix

* Fix

* Escape
2024-09-25 16:44:14 +02:00
Markus Jacobsen bb29c7a02f
Add sound modes to Bang & Olufsen devices (#121209)
* Add sound mode functionality

* Fix naming

* Change unique sound mode symbol

* Add testing for sound modes

* Add test typing

* Use constants for service call parameters

* Add state assertions

* Remove invalid decorator

* Add valid sound mode check

* Add test for invalid sound mode
2024-09-25 15:58:24 +02:00
Joost Lekkerkerker 33d83e43de
Update trigger validation message (#126749) 2024-09-25 15:33:03 +02:00
Joost Lekkerkerker 662a704165
Use snake case in matter fixture nodes (#126743) 2024-09-25 15:29:17 +02:00
epenet 083b586d19
Add pylint checks for fixture scope (#126723)
* Prevent session scope fixtures in component tests

* Link message to the decorator - not the function

* Add checks for package also

* Add check for session scope autouse

* Rename variable

* Adjust message

* Ignore fancy autouse

* Simplify
2024-09-25 15:27:57 +02:00
Joost Lekkerkerker 6e4e5ba8c5
Make Matter snapshot logic a shared function (#126744) 2024-09-25 15:12:48 +02:00
Joost Lekkerkerker a1906b434f
Change trigger platform key to trigger (#124357)
* fix

* Fix

* Fix

* Update homeassistant/helpers/config_validation.py

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

* Fix

* Fix

* Fix

* Fix

* Add more tests

* Fix

* Fix tests

* Add tests

* Let's see what the CI does

* It fails on the code that tested the thing ofc

* It fails on the code that tested the thing ofc

* Revert test thingy

* Now the test works again, lovely

* Another one

* Fix websocket thingy

* Only copy when needed

* Improve comment

* Remove test

* Fix docstring

* I think this now also work since this transforms trigger to platform

* Add comment

* Update homeassistant/helpers/config_validation.py

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

* Update homeassistant/helpers/config_validation.py

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

* Update homeassistant/helpers/config_validation.py

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

* Check for mapping

* Add test

* Update homeassistant/helpers/config_validation.py

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

* Update test to also test for trigger keys

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-09-25 14:19:58 +02:00
Marcel van der Veldt 18766905f4
Don't crash entire Matter integration setup when one node is failing (#126491)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-25 12:45:24 +02:00
Joost Lekkerkerker bebd1dc235
Enable Zwave notification sensors by default (#125326)
* Enable Zwave notification sensors by default

* Enable Zwave notification sensors by default

* Enable Zwave notification sensors by default

* Enable Zwave notification sensors by default

* Enable Zwave notification sensors by default

* Enable Zwave notification sensors by default

* Enable Zwave notification sensors by default

* Enable Zwave notification sensors by default

* Fix the check to (dis)allow discovering a value multiple times

* Prevent discovery of duplicate Notification CC sensors

* alarm sensors disabled by default

* one more fix

* Update diagnostics tests

---------

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-25 11:53:42 +02:00
Erik Montnemery 771575cfc5
Make statistics validation create issue registry issues (#122595)
* Make statistics validation create issue registry issues

* Disable creating issue about outdated MariaDB version in tests

* Use call_soon_threadsafe instead of run_callback_threadsafe

* Update tests

* Fix flapping test

* Disable creating issue about outdated SQLite version in tests

* Implement agreed changes

* Add translation strings for issue titles

* Update test
2024-09-25 11:11:11 +02:00
Joost Lekkerkerker 31d722f1ef
Introduce snapshot testing to matter (#126693)
* Introduce snapshot testing to matter

* Introduce snapshot testing to matter
2024-09-25 09:46:32 +02:00
epenet dff0e2cc9f
Move pylint decorator plugin and add tests (#126719) 2024-09-25 09:41:23 +02:00
Brett Adams eccb7bb55f
Add Storm watch active to Tesla integrations (#126704) 2024-09-25 09:05:33 +02:00
Manu e10d731049
Update snapshot for Bring tests (#126699) 2024-09-24 19:27:20 -07:00
Joost Lekkerkerker c5d562a56f
Add Spelling Bee and connections support to NYT Games (#126567) 2024-09-24 23:09:58 +02:00
Manu 3d4ac7ca63
Add diagnostics platform to Bring integration (#126695) 2024-09-24 23:00:43 +02:00
Erik Montnemery 161f37bb98
Add tests which directly test the recorder job wrappers (#125338) 2024-09-24 23:00:00 +02:00
Manu 20030ab604
Add sensor platform to Bring integration (#126642)
* Add sensor platform to Bring integration

* Add more tests

* unignore typedef check

* Update language sensor

* update snapshot

* changes

* add entities

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

* add units

* lowercase

* snapshot

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 22:55:48 +02:00
Allen Porter 8d0e9eb8ac
Improve Roborock error handling (#124267) 2024-09-24 22:38:40 +02:00
G Johansson ab8e2d92c8
Add diagnostics to Workday (#126691) 2024-09-24 22:37:54 +02:00
Joost Lekkerkerker 686d591f4f
Add coordinator to Spotify (#123548) 2024-09-24 22:24:40 +02:00
jvmahon 5e2955845a
Add button platform to Matter integration (#123665)
* Add files via upload

* add test

* add discovery schemas for operational state commands

* tests

* add filter resets

* add filter reset buttons

* Apply suggestions from code review

* tweak test

---------

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 22:07:29 +02:00
Doron Somech d2d3ab2d98
Add fan support for KNX climate entities (#126368)
* Add fan mode support to knx climate

* fix linting errors

* remove unneeded None protection from CONF_FAN_PERCENTAGES_MODES

* Update homeassistant/components/knx/climate.py

Co-authored-by: Matthias Alphart <farmio@alphart.net>

* Update homeassistant/components/knx/climate.py

Co-authored-by: Matthias Alphart <farmio@alphart.net>

* Update homeassistant/components/knx/climate.py

Co-authored-by: Matthias Alphart <farmio@alphart.net>

* Update homeassistant/components/knx/schema.py

Co-authored-by: Matthias Alphart <farmio@alphart.net>

* find closest percentage when not in fan modes

* new field for fan speed mode, max steps apply to both step and percentage

* not picking FAN_OFF when the percentage is closest to zero

* add fan zero mode to support auto mode

* use StrEnum for FanZeroMode

* change default to 'percent'

* fix mypy errors

---------

Co-authored-by: Matthias Alphart <farmio@alphart.net>
2024-09-24 21:38:09 +02:00
starkillerOG 69ecdda5f5
Add SSL Cipher option to aiohttp async_get_clientsession (#126317)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-24 21:31:52 +02:00
Ludovic BOUÉ b370893e58
Add support for OperationalState Attribute from Matter OperationalState cluster (#125627) 2024-09-24 21:30:30 +02:00
Michael Hansen 86f8901c96
Fix pipeline restart in VoIP (#126668) 2024-09-24 21:24:42 +02:00
David Bonnes e3e7aec73c
Rename an evohome test fixture (#126680) 2024-09-24 21:07:22 +02:00
epenet 3995d001ec
Set default source_type on TrackerEntity and ScannerEntity (#126648)
* Set default source_type on TrackerEntity and ScannerEntity

* Add samples

* Two more

* Adjust tests
2024-09-24 20:56:01 +02:00
Franck Nijhof 9dfabc3fb7
Adjust automation to plural triggers/conditions/actions keys (#123823)
* Adjust automation to plural triggers/conditions/actions keys

* Fix some tests

* Adjust websocket tests

* Fix search tests

* Convert blueprint and blueprint inputs to modern schema

* Pass schema when creating Blueprint object

* Update tests

* Adjust websocket api

---------

Co-authored-by: Joostlek <joostlek@outlook.com>
Co-authored-by: Erik <erik@montnemery.com>
2024-09-24 20:03:23 +02:00
Marcel van der Veldt 5e7d5c6312
Prevent KeyError when Matter device has invalid value for ModeSelect (#126672) 2024-09-24 19:36:09 +02:00
Thomas55555 dc77b2d583
Add work area switch for Husqvarna Automower (#126376)
* Add work area switch for Husqvarna Automower

* move work area deletion test to separate file

* stale doctsrings

* don't use custom test file

* use _attr_name

* ruff

* add available property

* hassfest

* fix tests

* Apply suggestions from code review

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

* constants

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 18:57:47 +02:00
Joost Lekkerkerker c1781cd793
Only raise missing integration issue for config entry integrations (#126654) 2024-09-24 18:26:01 +02:00
Marcel van der Veldt ffa76dfd24
Add discovery schemas for Matter Smoke and CO Alarm Cluster (#126622)
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-09-24 18:23:45 +02:00
Indrajit Raychaudhuri 0bf90d18ef
Ensure that HomeKit names start and end with alphanumeric character (#126413) 2024-09-24 18:18:17 +02:00
Bouwe Westerdijk 962b9915f0
Plugwise test maintenance (#126421) 2024-09-24 18:11:17 +02:00
Ludovic BOUÉ 31a1ad8409
Add Pressure and Altitude discovery schemas for Matter Eve Weather device (#125690)
* Update number.py to add EveWeatherAltitude attribute

* Update sensor.py to add EveCluster Pressure Attribute

* Update strings.json

* Create eve-weather-sensor.json

* Update test_sensor.py

* Update eve-weather-sensor.json

* Update test_sensor.py

Pressure
AttributeId: 319422484 (0x00130a0014) - Value type: float32

* Update test_sensor.py

* Update test_sensor.py

* Update test_sensor.py

* Update manifest.json

Bump to python-matter-server==6.5.0

* Update requirements_all.txt

Bump requirements to python-matter-server 6.5.0

* Update requirements_test_all.txt

Bump requirements to python-matter-server 6.5.0

* Update test_sensor.py

* Update test_sensor.py

* Update sensor.py

* Update sensor.py

* Update test_sensor.py

* Update sensor.py

* Update test_sensor.py

* Update test_sensor.py

* Update test_sensor.py

* fix test fixture

* Update requirements_all.txt

* Update requirements_test_all.txt

* Update manifest.json

* fix tests

* Update test_sensor.py

* add device class

---------

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
2024-09-24 17:59:58 +02:00
Erik Montnemery 2ee93d974d
Reinitialize ssdp discovery flow on unignore (#126557) 2024-09-24 10:38:33 -05:00
Allen Porter 412489c102
Require Google Photos uploads to target an album (#126651)
* Require uploads to target an album

* Remove edge case where albums are not loaded on startup which no longer happens

* Update homeassistant/components/google_photos/strings.json

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 17:26:33 +02:00
Allen Porter 437bbe5c6e
Limit Google Photos media source to Home Assistant created albums (#126653) 2024-09-24 17:22:24 +02:00
Erik Montnemery 264927926e
Remove unignore flow from homekit controller (#126637) 2024-09-24 16:43:12 +02:00
Erik Montnemery 2ded9d551a
Remove unignore flow from dlna_dmr (#126647) 2024-09-24 16:42:01 +02:00
Allen Porter 27bed0cdcb
Update Google Photos to have a DataUpdateCoordinator for loading albums (#126443)
* Update Google Photos to have a data update coordiantor for loading albums

* Remove album from services

* Remove action string changes

* Revert services.yaml change

* Simplify integration by blocking startup on album loading

* Update homeassistant/components/google_photos/coordinator.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 07:34:40 -07:00
Ludovic BOUÉ 741b025751
Add EveCluster ValvePosition Attribute (#125809) 2024-09-24 16:33:19 +02:00
G Johansson 03bba6d0c3
Climate check target min lower than target high (#124488)
* Guard target high_temp higher than low_temp in ClimateEntity

* Fixes

* Update string

* Forgot to fix tests
2024-09-24 15:56:30 +02:00
Mike Degatano 7517948900
Replace more addon management with aiohasupervisor (#126236)
* Replace start_addon with library call

* restart_addon to library and error issues in tests

* stop_addon to library

* uninstall_addon to library

* Add output typing

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-09-24 15:47:29 +02:00
Joost Lekkerkerker 2fa7113787
Raise issue if SSL is set but no external URL configured (#121768)
* Raise issue if SSL is set but no external URL configured

* Add cloud

* Add cloud

* Fix strings

* Attempt

* Fix

* Fix

* Move strings

* Fixes

* fix

* Fix

* Fix

* Fix

* Break tests

* Fix tests
2024-09-24 15:35:10 +02:00
Joost Lekkerkerker adcdb7a900
Map unknown air quality to None in Matter (#126639)
Map unknown to None in Matter
2024-09-24 15:30:01 +02:00
Lenn ade4ee810b
Fix motionblinds_ble sensor tests (#126635) 2024-09-24 15:05:00 +02:00
G Johansson d06d0a8f83
Fix tesla_fleet climate temp high/low test (#126631) 2024-09-24 14:56:46 +02:00
Erik Montnemery 972dc89c0f
Reinitialize dhcp discovery flow on config entry removal (#126556)
* Reinitialize dhcp discovery flow on unignore

* Tweak

* Rediscover on any removed config entry

* Adjust log message
2024-09-24 14:43:05 +02:00
Erik Montnemery b6fe3a3022
Reinitialize bluetooth discovery flow on config entry removal (#126555)
* Reinitialize bluetooth discovery flow on unignore

* Update homeassistant/components/bluetooth/manager.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update tests

* Rediscover on any removed config entry

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-24 14:42:46 +02:00
Erik Montnemery ba5f1ac2a9
Bump version of recorder context ID data migrators (#125293) 2024-09-24 13:45:37 +02:00
Joost Lekkerkerker d3889cab9e
Make Matter select entity values translatable (#126608)
* Make Matter select entity values lowercase

* Make Matter select entity values lowercase
2024-09-24 13:40:38 +02:00
Joost Lekkerkerker 77029b0197
Make NYT Games a service (#126613) 2024-09-24 13:38:07 +02:00
Erik Montnemery 589910b49b
Reinitialize zeroconf discovery flow on config entry removal (#126595) 2024-09-24 13:37:28 +02:00