From f83af1db4dc66c1de5ebda86e06065de89588e4e Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Wed, 11 Dec 2024 21:35:09 +0100 Subject: [PATCH] fix: Fix `Cannot read properties of null (reading 'toString')` when Home Assistant event entities are enabled https://github.com/Koenkk/zigbee2mqtt/issues/25133 --- lib/extension/homeassistant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 531af427c1..b65f797f0d 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -1069,7 +1069,7 @@ export default class HomeAssistant extends Extension { discoveryEntries.push({ type: 'event', object_id: firstExpose.property, - mockProperties: [{property: firstExpose.property, value: null}], + mockProperties: [], discovery_payload: { name: endpoint ? /* istanbul ignore next */ `${firstExpose.label} ${endpoint}` : firstExpose.label, state_topic: true,