Skip to content

Check deprecated create/deleteState/Device/Channel #182

@mcm1957

Description

@mcm1957

ioBroker/ioBroker.js-controller#2677

createState/Channel/Device and deleteState/Channel/Device will be deprecated with js-controller 6.
Lt repo checker warn devs (trigger on adapter.createState and this.createState etc.)

@copilot
Please check all executable code whether the methods createState, createChannel, createDevice, deleteState, deleteChannel or deleteState provided by adapter class are used. Those methodes could be identified by typical invocation call this.createState or adapter.createState (and analog syntax for other methods).

Issue a warning if such a usage is detected statiung that those methods are deprectated and will be removed. Suggest to use setObject or deletObject instead.

Do not register private function with this name.

Do not add a 'Fixes...' comment at PR

Please add a changelog entry to README.md

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions