1
0
mirror of https://github.com/home-assistant/core.git synced 2025-07-04 20:07:10 +00:00

20 Commits

Author SHA1 Message Date
J. Nick Koston
811ec57c31
Convert mqtt entity discovery to use callbacks () 2024-05-26 16:12:40 -10:00
Jan Bouwhuis
b7f1f805fa
Simplify subscription mqtt entity platforms () 2024-05-26 09:25:54 -10:00
J. Nick Koston
5d37217d96
Avoid expensive inspection of callbacks to setup mqtt subscriptions () 2024-05-26 01:22:44 -10:00
J. Nick Koston
9be829ba1f
Make mqtt internal subscription a normal function ()
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-05-25 11:34:24 -10:00
Jan Bouwhuis
f21c0679b4
Rework mqtt callbacks for camera, image and event () 2024-05-25 11:23:45 -10:00
Jan Bouwhuis
050fc73056
Refactor shared mqtt schema's to new module ()
* Refactor mqtt schema's to new module

* Remove unrelated change
2024-05-23 01:12:25 +02:00
J. Nick Koston
4e3c4400a7
Refactor MQTT to replace get_mqtt_data with HassKey () 2024-05-21 23:21:51 -10:00
Joost Lekkerkerker
cddce0ce0d
Enable more SIM ruff rules ()
* SIM101 SIM103

* SIM107 SIM109

* SIM110

* SIM112 SIM113

* SIM115

* SIM116

* Fix

* Fix

* Fix
2024-03-10 23:20:37 -04:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] () 2024-03-08 09:01:29 -05:00
Jan Bouwhuis
c13231fc00
Improve mqtt value template error logging ()
* Refactor mqtt value template error logging

* Remove import
2024-03-04 08:49:12 +01:00
Jan Bouwhuis
09f1ec78a5
Handle template errors on MQTT payload handling ()
* Handle template errors on MQTT payload handling (alt)

* Handle mqtt event en image template errors correctly
2024-02-13 10:59:55 +01:00
Jan Bouwhuis
dae8c0fc38
Fix MQTT retained event messages should be discarded () 2023-12-27 12:48:53 +01:00
Franck Nijhof
68ac4717dc
Revert "Raise HomeAssistantError if event is triggered with invalid event_type" () 2023-12-27 10:22:37 +01:00
Jan Bouwhuis
65e8bbacc9
Raise HomeAssistantError if event is triggered with invalid event_type () 2023-12-27 08:50:46 +01:00
Jan Bouwhuis
25ab622b51
Rename mqtt entry setup helpers to reflect their purpose ()
Rename mqtt entry setup helpers
2023-10-20 13:36:24 +02:00
Jan Bouwhuis
7d9014ae41
Do not fail MQTT setup if events or sensors configured via yaml can't be validated ()
* Add event and sensor

* Cleanup unused code

* Schema cannot be None for supported platform
2023-10-20 12:09:52 +02:00
Jan Bouwhuis
59a26010ba
Cleanup redundant mqtt entity constructors ()
* 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
002be37257
Rework and added tests for mqtt event ()
Use write_state_on_attr_change and add tests
2023-09-25 18:02:17 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma () 2023-08-10 14:27:03 +02:00
Jan Bouwhuis
1b8e03bb66
Add MQTT event entity platform ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-23 14:42:14 +02:00