Skip to content

Commit

Permalink
fix: Prevent warnings for bridge entities with legacy_entity_attribut…
Browse files Browse the repository at this point in the history
…es enabled (#20548)
  • Loading branch information
mundschenk-at authored Jan 4, 2024
1 parent b8edf27 commit 99a57bf
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 @@ -1378,7 +1378,7 @@ export default class HomeAssistant extends Extension {
payload.tilt_status_topic = stateTopic;
}

if (this.entityAttributes) {
if (this.entityAttributes && (isDevice || isGroup) ) {
payload.json_attributes_topic = stateTopic;
}

Expand Down

0 comments on commit 99a57bf

Please sign in to comment.