InvalidTrait

class InvalidTrait : ValidationIssue


The trait ID is not found in the trait schema. Optional expectedBehaviorType indicates it belongs to other schemas.

Summary

Public constructors

InvalidTrait(
    node: Node,
    severity: ValidationIssueSeverity,
    traitId: String,
    expectedBehaviorType: String
)

Create an InvalidTrait instance.

Public properties

String

Description of the expected behavior.

String

The unique ID of the trait.

Inherited properties

From com.google.home.automation.ValidationIssue
ValidationIssueType

The type of the validation issue.

Node

The node for which validation is failing.

ValidationIssueSeverity

The severity of the validation issue.

Public constructors

InvalidTrait

InvalidTrait(
    node: Node,
    severity: ValidationIssueSeverity,
    traitId: String,
    expectedBehaviorType: String
)

Create an InvalidTrait instance.

Public properties

expectedBehaviorType

val expectedBehaviorTypeString

Description of the expected behavior.

traitId

val traitIdString

The unique ID of the trait.