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:
parent
a10f475a3a
commit
ed217176e9
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ const decodeTopic = (topic) => {
|
||||||
const getOutputDeviceDiscoveryPayload = (
|
const getOutputDeviceDiscoveryPayload = (
|
||||||
/** @type {import('./types/DeviceRegistry').OutputDevice} */ device,
|
/** @type {import('./types/DeviceRegistry').OutputDevice} */ device,
|
||||||
) => ({
|
) => ({
|
||||||
name: device.name,
|
name: null,
|
||||||
unique_id: device.uniqueId,
|
unique_id: device.uniqueId,
|
||||||
'~': getBaseTopic(device.uniqueId, device.type),
|
'~': getBaseTopic(device.uniqueId, device.type),
|
||||||
state_topic: `~/${TOPIC_TYPES.STATE}`,
|
state_topic: `~/${TOPIC_TYPES.STATE}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue