Skip to content

Commit

Permalink
fix(ignore): improve 8f62a0a
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 17, 2023
1 parent 8f62a0a commit 2e704f3
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 @@ -859,7 +859,7 @@ export default class HomeAssistant extends Extension {
// entity_category config is not allowed for sensors
// https://github.com/Koenkk/zigbee2mqtt/issues/20252
if (discoveryEntry.discovery_payload.entity_category === 'config') {
delete discoveryEntry.discovery_payload.entity_category;
discoveryEntry.discovery_payload.entity_category = 'diagnostic';
}

// Let Home Assistant generate entity name when device_class is present
Expand Down

0 comments on commit 2e704f3

Please sign in to comment.