fix: Fix 'dict object' has no attribute 'ir_code_to_send' error. https://github.com/Koenkk/zigbee2mqtt/issues/18180

This commit is contained in:
koenkk
2023-07-18 19:53:48 +02:00
parent 313865b0a3
commit dec91919bc
+1
View File
@@ -912,6 +912,7 @@ export default class HomeAssistant extends Extension {
object_id: firstExpose.property,
mockProperties: [], // Already mocked above in case access STATE is supported
discovery_payload: {
state_topic: firstExpose.access & ACCESS_STATE,
value_template: `{{ value_json.${firstExpose.property} }}`,
command_topic_prefix: endpoint,
command_topic: true,