Commit Graph

33 Commits (llm-task-pref)

Author SHA1 Message Date
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
Robert Resch e413e9b93b
Add mac address to airgradient devices (#144876) 2025-05-14 13:40:38 +02:00
Joost Lekkerkerker 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
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
Maxim Mikityanskiy 275365a9d3
Expose raw PM2.5 in Airgradient (#135457) 2025-01-13 14:42:53 +00:00
Erik Montnemery 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 Montnemery 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 Lekkerkerker 18fd00d0c2
Add diagnostics platform to airgradient (#126886) 2024-09-27 11:35:35 +02:00
Joost Lekkerkerker 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 Lekkerkerker 30aa3a26ad
Merge coordinators in Airgradient (#124714) 2024-08-31 07:40:12 -07:00
Joost Lekkerkerker 493859e589
Add update platform to AirGradient (#123534) 2024-08-13 18:44:12 +02:00
Joost Lekkerkerker 537a76d049
Add model id to airgradient (#122271) 2024-07-21 08:41:42 +02:00
Joost Lekkerkerker f8ba4d41ba
Add support for adding model_id in device info (#121989) 2024-07-16 15:12:25 +02:00
Joost Lekkerkerker 9aa2cc11e9
Fix Airgradient ABC days name (#120659) 2024-06-27 12:47:58 +02:00
Joost Lekkerkerker e39d26bdc0
Add switch platform to Airgradient (#120559) 2024-06-26 14:21:30 +02:00
Robert Resch e8a3e3c8db
Fix airgradient select entities (#120549) 2024-06-26 13:19:34 +02:00
Erik Montnemery 9bbeb5d608
Add primary_config_entry attribute to device registry entries (#119959)
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-26 12:26:24 +02:00
Joost Lekkerkerker fac8349c37
Add learning offset select to Airgradient (#120532) 2024-06-26 12:18:33 +02:00
Joost Lekkerkerker 674dfa6e9c
Add button platform to AirGradient (#119917) 2024-06-24 11:55:48 +02:00
Joost Lekkerkerker ab9cbf64da
Add sensors to Airgradient (#120286) 2024-06-24 09:54:22 +02:00
Joost Lekkerkerker 080d90b63a
Add airgradient param fixture (#120241) 2024-06-23 17:48:54 +02:00
Joost Lekkerkerker 9769dec44b
Add number platform to AirGradient (#120247)
* Add number entity

* Add airgradient number entities

* Fix
2024-06-23 17:45:43 +02:00
Joost Lekkerkerker 8a38424c24
Add more airgradient configuration entities (#119191) 2024-06-18 22:34:11 +02:00
MallocArray 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 <joostlek@outlook.com>
2024-06-18 20:31:33 +02:00
Paulus Schoutsen eb89ce47ea
Inline primary integration (#119860) 2024-06-18 08:08:08 +02:00
Paulus Schoutsen 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
Joost Lekkerkerker 6027af3d36
Fix unit of measurement for airgradient sensor (#118981) 2024-06-07 09:17:36 +02:00
Joost Lekkerkerker c32eb97ac0
Disable both option in Airgradient select (#118702) 2024-06-03 15:49:51 +02:00
Robert Resch 7f49077ec6
Set enity_category to config for airgradient select entities (#118477) 2024-05-30 14:20:02 +02:00
Joost Lekkerkerker c80718628e
Add select entities to AirGradient (#117136) 2024-05-29 20:12:51 +02:00
Joost Lekkerkerker e8f544d216
Bump airgradient to 0.4.1 (#117963) 2024-05-23 10:25:54 +02:00
Joost Lekkerkerker 6485973d9b
Add airgradient integration (#114113) 2024-05-09 10:54:29 +02:00