mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 18:11:36 +00:00
fix(ignore): improve 8f62a0a
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user