Skip to content

Incorrect key in Entity model #94

@kennyboy55

Description

@kennyboy55

https://github.com/GrandMoff100/HomeAssistantAPI/blob/c38d21cacb5798d714e1fe4e2be823edf67b771a/homeassistant_api/models/entity.py#L28

File "<redacted>\homeassistant_api\rawclient.py", line 153, in get_entities entities[group_id].add_entity(entity_slug, state) File "<redacted>\homeassistant_api\models\entity.py", line 25, in add_entity self.entities[entity_slug] = Entity( File "pydantic\main.py", line 331, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for Entity group field required (type=value_error.missing)

The line should say:
group=self,

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions