1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-29 19:57:40 +01:00
Files
core/tests/components
Jan Bouwhuis aed3ba3acd Avoid redundant calls to async_ha_write_state in MQTT (binary) sensor (#100438)
* Only call `async_ha_write_state` on changes.

* Make helper class

* Use UndefinedType

* Remove del

* Integrate monitor into MqttEntity

* Track extra state attributes and availability

* Add `__slots__`

* Add monitor to MqttAttributes and MqttAvailability

* Write out loop

* Add test

* Make common test and parameterize

* Add test for last_reset attribute

* MqttMonitorEntity base class

* Rename attr and update docstr `track` method.

* correction doct

* Implement as a decorator

* Move tracking functions into decorator

* Rename decorator

* Follow up comment
2023-09-21 13:33:26 +02:00
..
2023-08-22 07:34:26 -05:00
2023-08-19 08:17:17 -04:00
2023-07-18 18:51:02 +02:00
2023-08-21 12:19:55 +02:00
2023-08-19 08:17:17 -04:00
2023-08-22 10:01:17 +02:00
2023-08-31 06:36:07 +02:00
2023-08-19 08:17:17 -04:00
2023-06-27 17:42:27 +02:00
2023-07-09 13:55:10 -04:00
2023-07-21 08:55:44 +02:00
2023-09-03 19:58:13 -05:00
2023-07-23 22:00:26 +02:00
2023-09-12 09:58:05 +02:00
2023-09-03 19:58:01 -05:00
2023-08-15 14:34:18 +02:00
2023-08-21 19:14:07 +02:00
2023-08-15 14:34:18 +02:00
2023-09-09 17:49:54 +02:00
2023-08-15 14:34:18 +02:00