Jan Bouwhuis
257e608c13
Use dataclass for mqtt TimestampedPublishMessage ( #101124 )
2023-09-29 20:11:30 +02:00
Jan Bouwhuis
0ded0ef4ee
Use dataclass instead of attr slots for mqtt PublishMessage and ReceiveMessage ( #101062 )
...
Use dataclass instead of attr slots
2023-09-28 20:36:30 +02:00
Jan Bouwhuis
77c519220d
Use dataclass for mqtt Subscription ( #101064 )
2023-09-28 20:35:49 +02:00
Jan Bouwhuis
dc1d3f727b
Fix handling reload with invalid mqtt config ( #101015 )
...
Fix handling reload whith invalid mqtt config
2023-09-27 20:59:19 -04:00
Jan Bouwhuis
0f38cd5794
Allow to reset an mqtt lock to an unknown state ( #100985 )
2023-09-27 09:50:01 +02:00
Jan Bouwhuis
59a26010ba
Cleanup redundant mqtt entity constructors ( #100939 )
...
* Remove redundant mqtt entity constructors
* Remove unrelated change
* Follow up comment
* Revert changes to mqtt update platform
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-26 23:03:11 +02:00
Jan Bouwhuis
8ec11910af
Allow discovery config update mqtt update entities ( #100957 )
2023-09-26 15:21:27 -05:00
Jan Bouwhuis
9254eea9e2
Remove unused attribute for MQTT lawn_mower ( #100946 )
...
Remove unused attributes for MQTT lawn_mower
2023-09-26 20:18:52 +02:00
Jan Bouwhuis
4d7e3d2b0f
Remove redundant initial assigment for mqtt siren ( #100945 )
2023-09-26 20:07:54 +02:00
Jan Bouwhuis
20a2e129fb
Intialize mqtt lock in an unknown state in pessimistic mode ( #100943 )
...
Intialize mqtt lock as unknown in pessimistic mode
2023-09-26 19:53:45 +02:00
Jan Bouwhuis
60b8775f4a
Avoid redundant calls to async_write_ha_state in mqtt siren ( #100813 )
...
* Avoid redundant calls to async_write_ha_state
* Add comment
2023-09-25 22:36:13 +02:00
Jan Bouwhuis
7258bc6457
Avoid redundant calls to async_write_ha_state in mqtt vacuum ( #100799 )
...
* Avoid redundant calls to async_write_ha_state
* Add comment
* Rephrase
2023-09-25 22:17:29 +02:00
Jan Bouwhuis
ea1108503d
Rework and fix mqtt siren writing state and attributes ( #100871 )
...
Rework mqtt siren writing state and attributes
2023-09-25 21:08:14 +02:00
Jan Bouwhuis
30c7e7fbdf
Avoid redundant calls to async_ha_write_state mqtt update platform ( #100819 )
...
Avoid redundant calls to async_ha_write_state
2023-09-25 18:08:02 +02:00
Jan Bouwhuis
cd3d3b76a3
Avoid redundant calls to async_ha_write_state in mqtt text ( #100816 )
...
Avoid redundant calls to async_ha_write_state
2023-09-25 18:07:24 +02:00
Jan Bouwhuis
8d10cdce4e
Avoid redundant calls to async_ha_write_state in mqtt switch ( #100815 )
...
Avoid redundant calls to async_ha_write_state
2023-09-25 18:06:19 +02:00
Jan Bouwhuis
33d45b3454
Avoid redundant calls to async_write_ha_state in mqtt select ( #100809 )
...
Avoid redundant calls to async_write_ha_state
2023-09-25 18:05:42 +02:00
Jan Bouwhuis
180f248370
Avoid redundant calls to async_write_ha_state in mqtt number ( #100808 )
...
Avoid redundant calls to async_write_ha_state
2023-09-25 18:05:14 +02:00
Jan Bouwhuis
98cc2e8098
Avoid redundant calls to async_write_ha_state in mqtt lock ( #100802 )
...
Avoid redundant calls to async_write_ha_state
2023-09-25 18:04:33 +02:00
Jan Bouwhuis
ce02cbefc9
Avoid redundant calls to async_write_ha_state in mqtt lawn_mower ( #100795 )
...
Avoid redundant calls to async_write_ha_state
2023-09-25 18:03:52 +02:00
Jan Bouwhuis
002be37257
Rework and added tests for mqtt event ( #100769 )
...
Use write_state_on_attr_change and add tests
2023-09-25 18:02:17 +02:00
Jan Bouwhuis
f83a597603
Avoid redundant calls to async_write_ha_state in mqtt humidifier ( #100781 )
...
Avoid redundant calls to async_write_ha_state
2023-09-25 18:00:08 +02:00
Jan Bouwhuis
3da4815522
Avoid redundant calls to async_write_ha_state for mqtt fan ( #100777 )
...
Avoid redundant calls to async_write_ha_state
2023-09-25 17:59:33 +02:00
Jan Bouwhuis
edb28be964
Avoid redundant calls to async_write_ha_state in mqtt device_tracker ( #100767 )
...
Avoid redundant calls to async_ha_write_state
2023-09-24 12:52:13 +02:00
Jan Bouwhuis
14b39c3bcf
Correct some typo's in MQTT issue string ( #100759 )
2023-09-23 19:05:52 +02:00
Jan Bouwhuis
c6d62faff3
Avoid redundant calls to async_write_ha_state in mqtt cover ( #100720 )
...
Avoid redundant calls to async_write_ha_state
2023-09-22 22:47:07 +02:00
Jan Bouwhuis
4c65c92fb0
Use shorthand attrs for MQTT cover ( #100710 )
...
* User shorthand attrs for MQTT cover
* Cleanup constructor
* Cleanup constructor
2023-09-22 13:41:31 +02:00
Jan Bouwhuis
5b422daf36
Avoid redundant calls to async_write_ha_state
in MQTT light ( #100690 )
...
* Limit state writes for mqtt light
* Additional tests and review follow up
2023-09-22 13:32:30 +02:00
Jan Bouwhuis
87ae5add8a
Fix mqtt light rgbww update without state topic ( #100707 )
...
* Fix mqtt light rgbww update without state topic
* Add @callback decprator and correct mired conv
2023-09-22 13:31:29 +02:00
Jan Bouwhuis
a66ad39c4e
Assign color_mode for mqtt light as ColorMode ( #100709 )
2023-09-22 12:09:37 +02:00
Jan Bouwhuis
384adb1c87
Avoid redundant calls to async_write_ha_state
in MQTT climate & water_heater ( #100696 )
...
Limit state writes for mqtt climate & water_heater
2023-09-22 11:22:57 +02:00
Jan Bouwhuis
1041610a70
Avoid redundant calls to async_write_ha_state
in MQTT mqtt alarm_control_panel ( #100691 )
...
Limit state writes for mqtt alarm_control_panel
2023-09-22 11:22:09 +02:00
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
Jan Bouwhuis
e3837cd1e0
Use shorthand attr for mqtt assumed_state ( #100241 )
2023-09-12 22:21:13 +02:00
Jan Bouwhuis
eb0ab3de93
User shorthand attr for mqtt alarm_control_panel ( #100234 )
2023-09-12 21:28:29 +02:00
Jan Bouwhuis
5fcb69e004
Use shorthanded attributes for MQTT cover ( #100230 )
2023-09-12 13:46:43 -05:00
Jan Bouwhuis
6b265120b3
Fix entity name attribute on mqtt entity is not removed on update ( #100187 )
...
Fix entity name attribute is not remove on update
2023-09-12 15:22:37 +02:00
Jan Bouwhuis
20d0ebe3fa
Add TYPE_CHECKING condition on type assertions for mqtt ( #100107 )
...
Add TYPE_CHECKING condition on type assertions
2023-09-11 10:58:33 +02:00
Jan Bouwhuis
1a5f093397
Uer hass.loop.create_future() for MQTT client ( #100053 )
2023-09-10 17:15:46 +02:00
Jan Bouwhuis
677431ed71
Fix key error MQTT binary_sensor when no name is set ( #99943 )
...
Log entitty ID when instead of name
2023-09-08 19:10:17 +02:00
J. Nick Koston
6e743a5bb2
Switch mqtt to use async_call_later where possible ( #99486 )
2023-09-02 11:55:11 -05:00
J. Nick Koston
7c87b38a23
Reduce overhead to process and publish MQTT messages ( #99457 )
2023-09-01 15:41:34 -05:00
J. Nick Koston
5a8fc43212
Refactor MQTT discovery to avoid creating closure if hash already in discovery_pending_discovered ( #99458 )
2023-09-01 15:40:53 -05:00
J. Nick Koston
09f45660cf
Avoid linear search of MQTT SUPPORTED_COMPONENTS ( #99459 )
...
By making this a set we avoid the linear search in async_discovery_message_received
2023-09-01 20:10:47 +02:00
Ville Skyttä
c287bd1a3b
Remove pylint configs flagged by useless-suppression ( #99081 )
2023-08-26 17:46:03 +03:00
Jan Bouwhuis
49897341ba
Add lawn_mower platform to MQTT ( #98831 )
...
* Add MQTT lawn_mower platform
* Use separate command topics and templates
* Remove unrelated change
2023-08-25 17:56:22 +02:00
Jan Bouwhuis
948b34b045
Do not force update mqtt device_tracker ( #98838 )
2023-08-24 20:09:14 +02:00
Jan Bouwhuis
8b232047c4
Add origin info support for MQTT discovered items ( #98782 )
...
* Add integration info support for MQTT discovery.
* Moving logs to discovery
* Revert adding class property
* Rename to origin
* Follow up comments
2023-08-24 09:50:39 +02:00
Ville Skyttä
34b47a2597
Remove unnnecessary pylint configs from components [m-r]* ( #98924 )
2023-08-24 00:56:50 +02:00
Jan Bouwhuis
0f58007e97
Deprecate aux heat for mqtt climate ( #98666 )
2023-08-22 22:39:55 +02:00