Skip to content

Commit

Permalink
fix: Fix Cannot read properties of null (reading 'toString') when H…
Browse files Browse the repository at this point in the history
…ome Assistant event entities are enabled #25133
  • Loading branch information
Koenkk committed Dec 11, 2024
1 parent ec13ebd commit 9eea58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9eea58e

Please sign in to comment.