Commit Graph

182 Commits (llm-task-pref)

Author SHA1 Message Date
G Johansson 25e6eab008
Not valid hvac modes now fails in Climate (#145242)
* Not valid hvac modes now fails

* Fix some tests

* Some more

* More

* fix ruff

* HVAC

* Fritzbox

* Clean up

* Use dict[key]

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-06-12 07:15:07 +02:00
epenet a007e8dc26
Use async_load_fixture in async test functions (l-z) (#145717)
* Use async_load_fixture in async test functions (l-z)

* Adjust
2025-06-01 06:29:17 -07:00
Abílio Costa b626204f63
Add default device class display precision for Sensor (#145013)
* Add default device class display precision for Sensor

* Renaming, docstrings, cleanup

* Simplify units list

* Fix tests

* Fix missing precision when suggested is specified

* Update snapshots

* Fix when unit of measurement is not valid

* Fix tests

* Fix deprecated unit usage

* Fix goalzero tests

The sensor native_value method was accessing the data dict and trowing,
since the mock did not have any data for the sensors.

Since now the precision is always specified (it was missing for those
sensors), the throw was hitting async_update_entity_options in _update_suggested_precision.
Previously, async_update_entity_options was not called since it had no
precision.

* Fix metoffice

* Fix smartthings

* Add default sensor data for Tesla Wall Connector tests

* Update snapshots

* Revert spaces

* Update smartthings snapshots

* Add missing sensor mock for tesla wall connector

* Address review comments

* Add doc comment

* Add cap to doc comment

* Update comment

* Update snapshots

* Update comment
2025-05-26 19:40:29 +02:00
Erik Montnemery 4e1d5fbeb0
Add WS command to help reset custom entity_id (#145504)
* Add WS command to help reset custom entity_id

* Calculate suggested object id from entity properties

* Fix logic and add additional tests

* Adjust test

* Update folder_watcher test

* Handle current entity id matches the automatic entity id

* Don't store calculated_object_id

* Update snapshots

* Update snapshots

* Update test

* Tweak logic for reusing current entity_id

* Improve test

* Don't assign same entity_id to several entities

* Prioritize custom entity name

* Update snapshots

* Update snapshots
2025-05-26 19:28:27 +02:00
Simone Chemelli 484a547758
Fix pylance warning on SnapshotAssertion import (#145206) 2025-05-19 13:55:48 +02:00
Robert Resch c4ceb4759a
Remove deprecated camera frontend_stream_type (#144539) 2025-05-09 13:08:34 +02:00
Norbert Rittel 3f7cae8583
Spelling fixes to user-facing strings of `tplink` (#143649)
* Fixes to user-facing strings of `tplink`

- add missing hyphen to "auto-off" and "auto-update"
- sentence-case one overlooked word

* Update test_sensor.ambr

* Update test_switch.ambr
2025-04-30 20:39:40 +02:00
Erik Montnemery 4b34d1bbb5
Merge config subentry feature branch to dev (#136121)
* Reapply "Add support for subentries to config entries" (#133470) (#136061)

* Reapply "Add support for subentries to config entries" (#133470)

This reverts commit ecb3bf79f3.

* Update test snapshot

* Add config subentry support to device registry (#128157)

* Add config subentry support to device registry

* Apply suggestions from code review

* Update syrupy serializer

* Update snapshots

* Address review comments

* Allow a device to be connected to no or a single subentry of a config entry

* Update snapshots

* Revert "Allow a device to be connected to no or a single subentry of a config entry"

This reverts commit ec6f613151cb4a806b7961033c004b71b76510c2.

* Update test snapshots

* Bump release version in comments

* Rename config_subentries to config_entries_subentries

* Add config subentry support to entity registry (#128155)

* Add config subentry support to entity registry

* Update syrupy serializer

* Update snapshots

* Update snapshots

* Accept suggested changes

* Clean registries when removing subentry (#136671)

* Clean up registries when removing subentry

* Update tests

* Clean up subentries from deleted devices when removing config entry (#136669)

* Clean up subentries from deleted devices when removing config entry

* Move

* Add config subentry support to entity platform (#128161)

* Add config subentry support to entity platform

* Rename subentry_id to config_subentry_id

* Store subentry type in subentry (#136687)

* Add reconfigure support to config subentries (#133353)

* Add reconfigure support to config subentries

* Update test

* Minor adjustment

* Rename supported_subentry_flows to supported_subentry_types

* Address review comments

* Add subentry support to kitchen sink (#136755)

* Add subentry support to kitchen sink

* Add subentry reconfigure support to kitchen_sink

* Update kitchen_sink tests with subentry type stored in config entry

* Update kitchen_sink

* Update kitchen_sink

* Adjust kitchen sink tests

* Fix hassfest

* Apply suggestions from code review

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

* Improve docstrings and strings.json

---------

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

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-10 16:40:07 +01:00
Teemu R. 0e1ae89f12
Polish tplink vacuum sensors (#137355) 2025-02-04 14:03:28 -06:00
Teemu R. 653ff47171
Add cleaning statistics for tplink (#135784)
Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
2025-01-29 08:56:47 -06:00
Teemu R. c7176f6849
Add consumables for tplink tapo vacuums (#136510)
Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-01-29 08:23:54 -06:00
Steven B. 6b4ec3f3f4
Use translations for fan_speed in tplink vacuum entity (#136718) 2025-01-29 10:55:19 +01:00
epenet d0a188b86d
Standardize homeassistant imports in component tests (m-z) (#136807) 2025-01-29 08:57:57 +01:00
Teemu R. 94e4863cbe
Add power protection entities for tplink (#132267)
Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-01-28 19:34:26 -10:00
Teemu R. c2cbbf1e1c
Add more vacuum features for tplink (#136580) 2025-01-29 01:23:29 +01:00
Teemu R. 37b23a9691
Add pair/unpair buttons for tplink (#135847) 2025-01-28 19:17:34 +01:00
Teemu R. 82ee47ef77
Initial implementation for tplink tapo vacuums (#131965)
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2025-01-28 12:44:46 +01:00
Steven B. c12fa34e33
Add support for tplink siren turn on parameters (#136642)
Add support for tplink siren parameters - Allow passing tone, volume, and duration for siren's play action.

---------

Co-authored-by: Teemu Rytilahti <tpr@iki.fi>
2025-01-27 21:27:29 +01:00
Steven B. 7133eec185
Bump python-kasa to 0.10.0 (#136586)
Bump python-kasa to 0.10.0

Release notes: https://github.com/python-kasa/python-kasa/releases/tag/0.10.0
2025-01-26 21:43:31 +01:00
Steven B. 28951096a8
Update tplink climate platform to use thermostat module (#136166) 2025-01-25 10:38:06 +01:00
Steven B. 2466df2b78
Fix tplink deprecated entity cleanup (#136160) 2025-01-23 19:51:56 +01:00
Steven B. a84335ae6d
Enable dynamic child devices for tplink module entities (#135822)
Add dynamic child device handling to tplink integration for module based entities. For child devices that could be added/removed to hubs.

This address the module based platforms. #135229 addressed feature based platforms.
2025-01-20 19:13:14 +01:00
epenet 64500e837f
Use new ServiceInfo location in component tests (part 1) (#136057) 2025-01-20 13:09:34 +01:00
Steven B. 51e3bf42f2
Add dynamic child device handling to tplink integration (#135229)
Add dynamic child device handling to tplink integration. For child devices that could be added/removed to hubs.
2025-01-15 20:45:06 +01:00
Joost Lekkerkerker 8db63adc11
Bump ruff to 0.9.1 (#135197) 2025-01-14 11:46:12 +01:00
Steven B. ab28115d2b
Cleanup tplink test framework (#135205) 2025-01-13 19:32:22 +01:00
epenet 02956f9a83
Improve formatting in component test files (#135267)
Improve formatting in test files
2025-01-10 10:53:45 +01:00
Steven B. 0d9ac25257
Add and cleanup tplink translations (#135120) 2025-01-09 11:28:10 +01:00
Steven B. 6f6d485530
Raise HomeAssistantError from tplink light effect service (#135081) 2025-01-08 15:12:21 +01:00
Allen Porter 6edf06f8a4
Converge stream av open methods, options, and error handling (#134020)
* Converge stream av open methods, options, and error handling

* Remove exception that is never thrown

* Update exceptions thrown in generic tests

* Increase stream test coverage
2024-12-27 18:47:33 -08:00
Steven B. 7f6a77ad2f
Fix tplink camera entity unique id (#133880) 2024-12-23 15:53:17 +02:00
Steven B. 8ab936b87c
Add detection switches to tplink integration (#133828) 2024-12-22 23:54:44 +01:00
Steven B. ebcb478f52
Add pan/tilt features to tplink integration (#133829) 2024-12-22 10:53:14 -10:00
Steven B. b1f6563fb2
Add camera platform to tplink integration (#129180)
Co-authored-by: Teemu R. <tpr@iki.fi>
2024-12-22 19:56:33 +01:00
Steven B. 3cc75c3cf6
Use feature checks in tplink integration (#133795)
Clean up to use new upstream API:

* Use Feature attributes to check for supported

* Use color_temp range and update tests
2024-12-22 16:17:23 +01:00
epenet 52491bb75e
Migrate tplink light tests to use Kelvin (#133026) 2024-12-12 12:52:01 +01:00
Steven B. f3964596de
tplink: forward compatible typing and test changes for kasa 0.8 (#131623) 2024-11-26 13:50:26 -06:00
Steven B. 03c3d09583
Enable overriding connection port for tplink devices (#129619)
Enable setting a port override during manual config entry setup.

The feature will be undocumented as it's quite a specialized use case generally used for testing purposes.
2024-11-08 14:41:00 +01:00
Teemu R. c6cb2884f4
Add motion sensor setting to tplink (#129393) 2024-11-06 13:40:17 +01:00
Teemu R. 72bcc6702f
Add child lock for tplink thermostats (#129649) 2024-11-05 11:14:53 +01:00
Teemu R. efa5838be4
Add last alert timestamp for tplink waterleak (#128644)
* Add last alert timestamp for tplink waterleak

* Fix snapshot
2024-10-30 23:25:30 +01:00
Steven B. 46ceccfbb3
Use new try_connect_all discover command in tplink config flow (#128994)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-10-29 10:26:34 -10:00
Teemu R. 21095e80a7
Expose tplink temperature sensor as measurement (#128640)
Add state_class=measurement to the temperature sensor, making it available for long-term statistics.
2024-10-21 23:39:56 +02:00
Teemu R. 55ae43ed03
Add motion detected binary_sensor for tplink (#127883)
* Add motion binary_sensor for tplink

* Remove strings definition as we have device class that handles this

* Simplify instructions

* Remove mentions about fixture creation and snapshot updates as requested

* re-add newline
2024-10-21 23:39: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
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
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
Teemu R. 1eea5b8a58
Increase tplink climate precision (#127996) 2024-10-11 13:15:30 +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
Steven B. 23a1046a8f
Allow single use of device class translations in tplink snapshot tests (#128022) 2024-10-09 18:12:21 +02:00