HomeAssistant-API 5.0.2.post2__tar.gz → 5.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/PKG-INFO +1 -1
  2. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/base.py +0 -1
  3. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/domains.py +0 -46
  4. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/websocket.py +3 -3
  5. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/pyproject.toml +1 -1
  6. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/LICENSE +0 -0
  7. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/README.md +0 -0
  8. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/__init__.py +0 -0
  9. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/client.py +0 -0
  10. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/errors.py +0 -0
  11. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/__init__.py +0 -0
  12. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/entity.py +0 -0
  13. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/events.py +0 -0
  14. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/history.py +0 -0
  15. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/logbook.py +0 -0
  16. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/models/states.py +0 -0
  17. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/processing.py +0 -0
  18. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/py.typed +0 -0
  19. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/rawasyncclient.py +0 -0
  20. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/rawbaseclient.py +0 -0
  21. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/rawclient.py +0 -0
  22. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/rawwebsocket.py +0 -0
  23. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/utils.py +0 -0
  24. {homeassistant_api-5.0.2.post2 → homeassistant_api-5.0.3}/homeassistant_api/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: HomeAssistant-API
3
- Version: 5.0.2.post2
3
+ Version: 5.0.3
4
4
  Summary: Python Wrapper for Homeassistant's REST API
5
5
  License: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -23,6 +23,5 @@ class BaseModel(PydanticBaseModel):
23
23
  model_config = ConfigDict(
24
24
  arbitrary_types_allowed=True,
25
25
  validate_assignment=True,
26
- extra="forbid",
27
26
  protected_namespaces=(),
28
27
  )
@@ -484,52 +484,6 @@ class ServiceFieldSelectorUIStateContext(BaseModel):
484
484
  allow_name: Optional[bool] = None
485
485
 
486
486
 
487
- # fields.file.ServiceField.selector.media.multiple
488
- # Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]
489
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
490
- # fields.file.ServiceFieldCollection.fields
491
- # Field required [type=missing, input_value={'required': True, 'selec...'], 'multiple': False}}}, input_type=dict]
492
- # For further information visit https://errors.pydantic.dev/2.12/v/missing
493
- # fields.file.ServiceFieldCollection.required
494
- # Extra inputs are not permitted [type=extra_forbidden, input_value=True, input_type=bool]
495
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
496
- # fields.file.ServiceFieldCollection.selector
497
- # Extra inputs are not permitted [type=extra_forbidden, input_value={'media': {'accept': ['im...*'], 'multiple': False}}, input_type=dict]
498
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
499
-
500
- # fields.media.ServiceField.selector.media.multiple
501
- # Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]
502
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
503
-
504
- # fields.media.ServiceFieldCollection.fields
505
- # Field required [type=missing, input_value={'required': True, 'selec...ontent_type": "music"}'}, input_type=dict]
506
- # For further information visit https://errors.pydantic.dev/2.12/v/missing
507
- # fields.media.ServiceFieldCollection.required
508
- # Extra inputs are not permitted [type=extra_forbidden, input_value=True, input_type=bool]
509
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
510
- # fields.media.ServiceFieldCollection.selector
511
- # Extra inputs are not permitted [type=extra_forbidden, input_value={'media': {'multiple': False}}, input_type=dict]
512
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
513
- # fields.media.ServiceFieldCollection.example
514
- # Extra inputs are not permitted [type=extra_forbidden, input_value='{"media_content_id": "ht...content_type": "music"}', input_type=str]
515
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
516
-
517
- # fields.media.ServiceField.selector.media.multiple
518
- # Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]
519
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
520
- # fields.media.ServiceFieldCollection.fields
521
- # Field required [type=missing, input_value={'required': True, 'selec...ontent_type": "music"}'}, input_type=dict]
522
- # For further information visit https://errors.pydantic.dev/2.12/v/missing
523
- # fields.media.ServiceFieldCollection.required
524
- # Extra inputs are not permitted [type=extra_forbidden, input_value=True, input_type=bool]
525
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
526
- # fields.media.ServiceFieldCollection.selector
527
- # Extra inputs are not permitted [type=extra_forbidden, input_value={'media': {'multiple': False}}, input_type=dict]
528
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden
529
- # fields.media.ServiceFieldCollection.example
530
- # Extra inputs are not permitted [type=extra_forbidden, input_value='{"media_content_id": "ht...content_type": "music"}', input_type=str]
531
- # For further information visit https://errors.pydantic.dev/2.12/v/extra_forbidden```
532
-
533
487
  class ServiceFieldSelector(BaseModel):
534
488
  action: Optional[ServiceFieldSelectorAction] = None
535
489
  addon: Optional[ServiceFieldSelectorAddon] = None
@@ -45,9 +45,9 @@ class PingResponse(BaseModel):
45
45
  class Error(BaseModel):
46
46
  code: str
47
47
  message: str
48
- translation_key: str
49
- translation_placeholders: dict[str, str]
50
- translation_domain: str
48
+ translation_key: Optional[str] = None
49
+ translation_placeholders: Optional[dict[str, str]] = None
50
+ translation_domain: Optional[str] = None
51
51
 
52
52
 
53
53
  class ErrorResponse(BaseModel):
@@ -12,7 +12,7 @@ name = "HomeAssistant-API"
12
12
  readme = "README.md"
13
13
  include = ["homeassistant_api/py.typed"]
14
14
  repository = "https://github.com/GrandMoff100/HomeAssistantAPI"
15
- version = "5.0.2.post2"
15
+ version = "5.0.3"
16
16
  packages = [{ include = "homeassistant_api" }]
17
17
 
18
18
  [tool.poetry.dependencies]