Skip to content

Commit f83af1d

Browse files
committed
fix: Fix Cannot read properties of null (reading 'toString') when Home Assistant event entities are enabled #25133
1 parent 6905c10 commit f83af1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extension/homeassistant.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ export default class HomeAssistant extends Extension {
10691069
discoveryEntries.push({
10701070
type: 'event',
10711071
object_id: firstExpose.property,
1072-
mockProperties: [{property: firstExpose.property, value: null}],
1072+
mockProperties: [],
10731073
discovery_payload: {
10741074
name: endpoint ? /* istanbul ignore next */ `${firstExpose.label} ${endpoint}` : firstExpose.label,
10751075
state_topic: true,

0 commit comments

Comments
 (0)