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:
Franck Nijhof authored and GitHub committed 2021-06-08 15:33:14 +02:00
1 parent 9eb1fe61e7
commit 000884b080
7 files changed
+58 -3

No files matched your search

+2
View File
@@ -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();
});
});