# UnsupportedEntityTrait

# UnsupportedEntityTrait


```
class UnsupportedEntityTrait : ValidationIssue
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.home.automation.ValidationIssue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue) ||
|   | ↳ | [com.google.home.automation.UnsupportedEntityTrait](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait) |

*** ** * ** ***

The trait is not supported by the entity.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait#UnsupportedEntityTrait(com.google.home.automation.Node,com.google.home.automation.ValidationIssueSeverity,kotlin.String,kotlin.String,kotlin.String,kotlin.collections.List)( node: https://developers.home.google.com/reference/kotlin/com/google/home/automation/Node, severity: https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueSeverity, traitId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, entityId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, entityType: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, unsupportedReasons: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedCandidateReason> )` Create an `UnsupportedEntityTrait` instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait#entityId()` The unique ID of the entity. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait#entityType()` The type of the entity. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait#traitId()` The unique ID of the trait. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedCandidateReason>` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait#unsupportedReasons()` List of reasons why the trait is not supported. |

| ### Inherited functions |
|---|
| From [com.google.home.automation.ValidationIssue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue) |---|---| | `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#toString()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.automation.ValidationIssue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueType` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#issueType()` The type of the validation issue. | | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Node` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#node()` The node for which validation is failing. | | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueSeverity` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#severity()` The severity of the validation issue. | |

## Public constructors

### UnsupportedEntityTrait

```
UnsupportedEntityTrait(
    node: Node,
    severity: ValidationIssueSeverity,
    traitId: String,
    entityId: String,
    entityType: String,
    unsupportedReasons: List<UnsupportedCandidateReason>
)
```

Create an `UnsupportedEntityTrait` instance.

## Public properties

### entityId

```
val entityId: String
```

The unique ID of the entity.

### entityType

```
val entityType: String
```

The type of the entity.

### traitId

```
val traitId: String
```

The unique ID of the trait.

### unsupportedReasons

```
val unsupportedReasons: List<UnsupportedCandidateReason>
```

List of reasons why the trait is not supported.