From ed217176e99357a4aad7e92b1f78da92a65eac3f Mon Sep 17 00:00:00 2001 From: swevictor Date: Fri, 18 Aug 2023 20:07:40 +0200 Subject: [PATCH] Set entity name to null to indicate entity is the default entity for the device Due to HA change as per https://developers.home-assistant.io/blog/2023-057-21-change-naming-mqtt-entities/ --- plejd/MqttClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plejd/MqttClient.js b/plejd/MqttClient.js index 57f1262..3517041 100644 --- a/plejd/MqttClient.js +++ b/plejd/MqttClient.js @@ -58,7 +58,7 @@ const decodeTopic = (topic) => { const getOutputDeviceDiscoveryPayload = ( /** @type {import('./types/DeviceRegistry').OutputDevice} */ device, ) => ({ - name: device.name, + name: null, unique_id: device.uniqueId, '~': getBaseTopic(device.uniqueId, device.type), state_topic: `~/${TOPIC_TYPES.STATE}`,