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/
This commit is contained in:
swevictor 2023-08-18 20:07:40 +02:00
parent a10f475a3a
commit ed217176e9

View file

@ -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}`,