Commit Graph
60 Commits
Author SHA1 Message Date
5472a537ed Replace unused mock_setup_entry arguments with @pytest.mark.usefixtures (#170760)
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
2026-05-16 11:02:36 +02:00
Franck NijhofandGitHub a9207988f5 Fix line length violations in tests/components a (#170806) 2026-05-15 13:07:01 -04:00
Artur PragaczandGitHub bafef2065f Rework user-given entity name logic (#162763) 2026-03-17 11:09:20 +01:00
2e34d4d3a6 Add brands system integration to proxy brand images through local API (#163960)
Co-authored-by: Robert Resch <[email protected]>
Co-authored-by: Copilot <[email protected]>
2026-02-25 17:10:28 +01:00
Artur PragaczandGitHub 0130919128 Improve entity id generation (#160302) 2026-01-14 14:34:52 +01:00
Joost LekkerkerkerandGitHub 6c8b1f3618 Catch update exception in AirGradient (#153828) 2025-10-06 21:31:55 +02:00
48300f4563 Use greek small letter mu "\u03bc" instead of micro sign "\u00B5" for micro unit prefix (alt 1) (#144853)
Co-authored-by: Erik Montnemery <[email protected]>
2025-08-19 18:48:50 +02:00
Erik MontnemeryandGitHub d77a3fca83 Exclude is_new from DeviceEntry snapshots (#149801) 2025-08-01 11:01:26 +02:00
Erik MontnemeryandGitHub 0d7608f7c5 Deprecate DeviceEntry.suggested_area (#149730) 2025-08-01 10:34:34 +02:00
Joost LekkerkerkerandGitHub db8a6f8583 Catch exception before retrying in AirGradient (#146460) 2025-06-10 17:31:30 +02:00
epenetandGitHub bd5fef1ddb Use async_load_fixture in async test functions (a) (#145718) 2025-05-28 15:51:49 +02:00
Abílio CostaandGitHub 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 MontnemeryandGitHub 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 ChemelliandGitHub 484a547758 Fix pylance warning on SnapshotAssertion import (#145206) 2025-05-19 13:55:48 +02:00
Robert ReschandGitHub e413e9b93b Add mac address to airgradient devices (#144876) 2025-05-14 13:40:38 +02:00
Joost LekkerkerkerandGitHub ff16e587e8 Bump airgradient to 0.9.2 (#138725)
* Bump airgradient to 0.9.2

* Bump airgradient to 0.9.2
2025-02-17 18:45:26 +02:00
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 <[email protected]>

* Improve docstrings and strings.json

---------

Co-authored-by: Martin Hjelmare <[email protected]>

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

---------

Co-authored-by: Martin Hjelmare <[email protected]>
2025-02-10 16:40:07 +01:00
132f418f92 Add reconfigure flow to Airgradient (#136324)
* Add reconfigure flow to Airgradient

* Update homeassistant/components/airgradient/strings.json

---------

Co-authored-by: Robert Resch <[email protected]>
2025-01-23 16:53:31 +02:00
Joost LekkerkerkerandGitHub 40ed0562bc Add translated action exceptions to Airgradient (#136322)
* Add translated action exceptions to Airgradient

* Add translated action exceptions to Airgradient
2025-01-23 14:48:46 +02:00
epenetandGitHub b046ca9abe Move ZeroconfServiceInfo to service_info helpers (#135653)
* Move ZeroconfServiceInfo to service_info helpers

* Adjust deprecation date

* Fix mypy/pylint

* Fix DeprecatedConstant

* Add deprecation test

* Adjust

* Also deprecate ATTR_PROPERTIES_ID
2025-01-15 12:25:42 +01:00
Maxim MikityanskiyandGitHub 275365a9d3 Expose raw PM2.5 in Airgradient (#135457) 2025-01-13 14:42:53 +00:00
Joost LekkerkerkerandGitHub 52683c5f75 Improve Airgradient config flow tests (#133594) 2024-12-19 19:58:33 +01:00
Marc MuellerandGitHub bdfb47e999 Fix AsyncMock imports (#129192) 2024-10-26 01:47:27 +02:00
Erik MontnemeryandGitHub bd55fe868d Allow update entities to report progress as a float (#128930)
* Allow update entities to report progress as a float

* Add test

* Update snapshots

* Update recorder test

* Use _attr_* in MockUpdateEntity
2024-10-24 21:20:18 +02:00
Erik MontnemeryandGitHub e861cab727 Add update_percentage state attribute to update entity (#128877)
* Add update_percentage state attribute to update entity

* Update tests

* Update tests
2024-10-21 15:31:48 +02:00
Joost LekkerkerkerandGitHub a3ec4db9cc Update airgradient device sw_version when changed (#126902) 2024-09-27 13:21:35 +02:00
Joost LekkerkerkerandGitHub 18fd00d0c2 Add diagnostics platform to airgradient (#126886) 2024-09-27 11:35:35 +02:00
Joost LekkerkerkerandGitHub 9422cde275 Bump airgradient to 0.9.0 (#126319)
* Bump airgradient to 0.9.0

* Bump airgradient to 0.9.0
2024-09-21 13:11:27 +02:00
Joost LekkerkerkerandGitHub 30aa3a26ad Merge coordinators in Airgradient (#124714) 2024-08-31 07:40:12 -07:00
Joost LekkerkerkerandGitHub 7ae8f4c9d0 Don't abort airgradient user flow if flow in progress (#124300) 2024-08-24 07:20:00 +02:00
Joost LekkerkerkerandGitHub 493859e589 Add update platform to AirGradient (#123534) 2024-08-13 18:44:12 +02:00
Allen PorterandGitHub e8eb1ed35c Bump airgradient to 0.7.1 removing mashumaro direct dependency (#122534) 2024-07-25 07:46:09 -07:00
Joost LekkerkerkerandGitHub 537a76d049 Add model id to airgradient (#122271) 2024-07-21 08:41:42 +02:00
Joost LekkerkerkerandGitHub f8ba4d41ba Add support for adding model_id in device info (#121989) 2024-07-16 15:12:25 +02:00
Marc MuellerandGitHub 2f0dd6f704 Import Generator from collections.abc (2) (#120915) 2024-07-01 11:58:49 +02:00
Joost LekkerkerkerandGitHub 9aa2cc11e9 Fix Airgradient ABC days name (#120659) 2024-06-27 12:47:58 +02:00
Joost LekkerkerkerandGitHub e39d26bdc0 Add switch platform to Airgradient (#120559) 2024-06-26 14:21:30 +02:00
Robert ReschandGitHub e8a3e3c8db Fix airgradient select entities (#120549) 2024-06-26 13:19:34 +02:00
9bbeb5d608 Add primary_config_entry attribute to device registry entries (#119959)
Co-authored-by: Franck Nijhof <[email protected]>
Co-authored-by: Robert Resch <[email protected]>
2024-06-26 12:26:24 +02:00
Joost LekkerkerkerandGitHub fac8349c37 Add learning offset select to Airgradient (#120532) 2024-06-26 12:18:33 +02:00
1f0e47b251 Migrate Airgradient select entities to be config source dependent (#120462)
Co-authored-by: Robert Resch <[email protected]>
2024-06-25 22:27:52 +02:00
Joost LekkerkerkerandGitHub 674dfa6e9c Add button platform to AirGradient (#119917) 2024-06-24 11:55:48 +02:00
Joost LekkerkerkerandGitHub ab9cbf64da Add sensors to Airgradient (#120286) 2024-06-24 09:54:22 +02:00
Joost LekkerkerkerandGitHub 080d90b63a Add airgradient param fixture (#120241) 2024-06-23 17:48:54 +02:00
Joost LekkerkerkerandGitHub 9769dec44b Add number platform to AirGradient (#120247)
* Add number entity

* Add airgradient number entities

* Fix
2024-06-23 17:45:43 +02:00
Joost LekkerkerkerandGitHub 6fa54229fe Bump airgradient to 0.6.0 (#119962)
* Bump airgradient to 0.6.0

* Bump airgradient to 0.6.0

* Bump airgradient to 0.6.0

* Bump airgradient to 0.6.0
2024-06-19 20:38:57 +03:00
Joost LekkerkerkerandGitHub 8a38424c24 Add more airgradient configuration entities (#119191) 2024-06-18 22:34:11 +02:00
be4db90c91 Update airgradient names to NOx index and VOC index (#119152)
* Update names to NOx index and VOC index

* Fix snapshots

* Fix snapshots

---------

Co-authored-by: Joostlek <[email protected]>
2024-06-18 20:31:33 +02:00
Paulus SchoutsenandGitHub eb89ce47ea Inline primary integration (#119860) 2024-06-18 08:08:08 +02:00
Paulus SchoutsenandGitHub 836abe68c7 Track primary integration (#119741)
* Track primary integration

* Update snapshots

* More snapshots updated

* Uno mas

* Update snapshot
2024-06-16 13:26:06 -04:00