HomeAssistant-API 4.1.1__tar.gz → 4.1.1.post1__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.
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/PKG-INFO +1 -1
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/domains.py +2 -2
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/pyproject.toml +1 -1
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/LICENSE +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/README.md +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/__init__.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/client.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/errors.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/__init__.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/base.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/entity.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/events.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/history.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/logbook.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/states.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/processing.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/py.typed +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/rawasyncclient.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/rawbaseclient.py +0 -0
- {homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/rawclient.py +0 -0
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/domains.py
RENAMED
|
@@ -48,6 +48,7 @@ class Domain(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
def _add_service(self, service_id: str, **data) -> None:
|
|
50
50
|
"""Registers services into a domain to be used or accessed. Used internally."""
|
|
51
|
+
# raise ValueError(data)
|
|
51
52
|
self.services.update(
|
|
52
53
|
{
|
|
53
54
|
service_id: Service(
|
|
@@ -73,7 +74,7 @@ class ServiceField(BaseModel):
|
|
|
73
74
|
"""Model for service parameters/fields."""
|
|
74
75
|
|
|
75
76
|
description: Optional[str] = None
|
|
76
|
-
example: Any
|
|
77
|
+
example: Any = None
|
|
77
78
|
selector: Optional[Dict[str, Any]] = None
|
|
78
79
|
name: Optional[str] = None
|
|
79
80
|
required: Optional[bool] = None
|
|
@@ -87,7 +88,6 @@ class Service(BaseModel):
|
|
|
87
88
|
name: Optional[str] = None
|
|
88
89
|
description: Optional[str] = None
|
|
89
90
|
fields: Optional[Dict[str, ServiceField]] = None
|
|
90
|
-
target: Optional[Dict[str, Dict[str, Any]]] = None
|
|
91
91
|
|
|
92
92
|
def trigger(self, **service_data) -> Tuple[State, ...]:
|
|
93
93
|
"""Triggers the service associated with this object."""
|
|
@@ -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 = "4.1.1"
|
|
15
|
+
version = "4.1.1.post1"
|
|
16
16
|
packages = [{ include = "homeassistant_api" }]
|
|
17
17
|
|
|
18
18
|
[tool.poetry.dependencies]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/entity.py
RENAMED
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/events.py
RENAMED
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/history.py
RENAMED
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/logbook.py
RENAMED
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/models/states.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/rawasyncclient.py
RENAMED
|
File without changes
|
{homeassistant_api-4.1.1 → homeassistant_api-4.1.1.post1}/homeassistant_api/rawbaseclient.py
RENAMED
|
File without changes
|
|
File without changes
|