Skip to content

[enhancement]: core code should add missing common.read / common.write attributes #3236

@mcm1957

Description

@mcm1957

No existing issues.

  • There is no existing issue for my request.

Description

Some adapters (currently only ioBroker.devices is know) create objects with type state withou specifying attributes common.write and common.read.

As those attributes are declared to be mandatory at type definitions and in addition @GermanBluefox states that those attributes need not to be specified at all as "undefinied is identical to true" for those attributes (see linked issues) I suggest that core code simply does the following actions

  • log a warning is an object of type state is created and common.read / common.write is not sepecifies (is undefined)
  • simply set the defaultvalues 'true' (?) for those attributes

This would solve issue #3235 abd remove the need to adapt the type definition even if code at ioBroker.devices is not planned to be fixed.

Why?

see issues
#3235

ioBroker/ioBroker.devices#463
ioBroker/ioBroker.devices#533
ioBroker/ioBroker.devices#463

How?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions