hass-core/tests/components/matter
Marcel van der Veldt 99401c60c7
Add Matter custom cluster sensors (Eve Energy Plug energy measurements) (#104830)
* Support for sensors from custom clusters in Matter

* lint

* no need to write state twice

* Add test for eve energy plug

* Update homeassistant/components/matter/entity.py

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

* adjust comment

* debounce extra poll timer

* use async_call_later helper

* Update homeassistant/components/matter/entity.py

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

* wip extend test

* Update test_sensor.py

* fix state class for sensors

* trigger (fake) event callback on all subscribers

* Update eve-energy-plug.json

* add test for additionally polled value

* adjust delay to 3 seconds

* Adjust subscribe_events to always use kwargs

* Update tests/components/matter/common.py

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

* Update test_sensor.py

* remove redundant code

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-12-05 15:54:58 +01:00
..
fixtures Add Matter custom cluster sensors (Eve Energy Plug energy measurements) (#104830) 2023-12-05 15:54:58 +01:00
__init__.py
common.py Add Matter custom cluster sensors (Eve Energy Plug energy measurements) (#104830) 2023-12-05 15:54:58 +01:00
conftest.py Fix Matter 1.2 locks with specific unlatch/unbolt support (#103275) 2023-11-03 12:09:31 +01:00
test_adapter.py Add Matter custom cluster sensors (Eve Energy Plug energy measurements) (#104830) 2023-12-05 15:54:58 +01:00
test_api.py Improve hass_ws_client type hint in tests (#89703) 2023-03-14 16:31:40 +01:00
test_binary_sensor.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_climate.py Add Matter Climate support (#95434) 2023-07-03 12:33:50 +02:00
test_config_flow.py Include UUID in hassio discovery data (#91970) 2023-04-25 09:48:47 +02:00
test_cover.py Matter cover position improvements (#92278) 2023-05-31 16:08:01 +02:00
test_diagnostics.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_door_lock.py Fix Matter 1.2 locks with specific unlatch/unbolt support (#103275) 2023-11-03 12:09:31 +01:00
test_event.py Fix long press event for matter generic switch (#99645) 2023-09-05 13:10:14 +02:00
test_helpers.py Fix device sync to Google Assistant if Matter integration is active (#104796) 2023-11-30 19:47:30 +01:00
test_init.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_light.py Bump Matter server library to 3.4.1 and address changes (#93411) 2023-05-23 20:42:09 +02:00
test_sensor.py Add Matter custom cluster sensors (Eve Energy Plug energy measurements) (#104830) 2023-12-05 15:54:58 +01:00
test_switch.py Fix discovery schema for Matter switches (#103762) 2023-11-21 20:25:07 +01:00