mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
Deprecate Home Assistant entity attributes (#7683)
* Deprecate Home Assistant entity attributes * Adjust test to match latest dev * Set default only for new installations * Fix tests
This commit is contained in:
1 parent
9eb1fe61e7
commit
000884b080
7 files changed
+58
-3
No files matched your search
@@ -625,9 +625,11 @@ describe('Controller', () => {
|
||||
});
|
||||
|
||||
it('Should disable legacy options on new network start', async () => {
|
||||
expect(settings.get().advanced.homeassistant_legacy_entity_attributes).toBeTruthy();
|
||||
expect(settings.get().advanced.legacy_api).toBeTruthy();
|
||||
zigbeeHerdsman.start.mockReturnValueOnce('reset');
|
||||
await controller.start();
|
||||
expect(settings.get().advanced.homeassistant_legacy_entity_attributes).toBeFalsy();
|
||||
expect(settings.get().advanced.legacy_api).toBeFalsy();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user