pymiele 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl
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.
- pymiele/const.py +1 -1
- pymiele/pymiele.py +20 -0
- {pymiele-0.4.0.dist-info → pymiele-0.4.1.dist-info}/METADATA +1 -1
- pymiele-0.4.1.dist-info/RECORD +11 -0
- pymiele-0.4.0.dist-info/RECORD +0 -11
- {pymiele-0.4.0.dist-info → pymiele-0.4.1.dist-info}/WHEEL +0 -0
- {pymiele-0.4.0.dist-info → pymiele-0.4.1.dist-info}/licenses/LICENSE +0 -0
- {pymiele-0.4.0.dist-info → pymiele-0.4.1.dist-info}/top_level.txt +0 -0
pymiele/const.py
CHANGED
pymiele/pymiele.py
CHANGED
@@ -159,6 +159,26 @@ class AbstractAuth(ABC):
|
|
159
159
|
_LOGGER.debug("set_program res: %s", res.status)
|
160
160
|
return res
|
161
161
|
|
162
|
+
async def set_room(
|
163
|
+
self, serial: str, data: dict[str, int | list[int]]
|
164
|
+
) -> ClientResponse:
|
165
|
+
"""Send start in room command."""
|
166
|
+
|
167
|
+
_LOGGER.debug("set_room serial: %s, data: %s", serial, data)
|
168
|
+
async with asyncio.timeout(AIO_TIMEOUT):
|
169
|
+
res = await self.request(
|
170
|
+
"PUT",
|
171
|
+
f"/devices/{serial}/rooms",
|
172
|
+
data=json.dumps(data),
|
173
|
+
headers={
|
174
|
+
"Content-Type": CONTENT_TYPE,
|
175
|
+
"Accept": "application/json",
|
176
|
+
},
|
177
|
+
)
|
178
|
+
res.raise_for_status()
|
179
|
+
_LOGGER.debug("set_room res: %s", res.status)
|
180
|
+
return res
|
181
|
+
|
162
182
|
async def listen_events(
|
163
183
|
self,
|
164
184
|
data_callback: Callable[[dict[str, Any]], Any] | None = None,
|
@@ -0,0 +1,11 @@
|
|
1
|
+
pymiele/__init__.py,sha256=yaR_pvVA5HfAxQ9oHCk8CsoHfEkskdZLmxbY1QgrMBE,260
|
2
|
+
pymiele/code_enum.py,sha256=AAtxgSyNtX96SlfdrFZs1DVwqTDR0jG2KfmOFoAkjI4,1511
|
3
|
+
pymiele/const.py,sha256=Mm0AlvPGWG0HvMq81wupAXokV8izAovoQS7IsfPz9Og,237
|
4
|
+
pymiele/model.py,sha256=xJ8-J2fRlNHCO6g2_8mzpv0IKroHB3-VllzfGyjs-s4,16355
|
5
|
+
pymiele/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
pymiele/pymiele.py,sha256=yGL4rekRPGzwXziZ5ydVrsEN-XPN110dmuWygbXF148,9405
|
7
|
+
pymiele-0.4.1.dist-info/licenses/LICENSE,sha256=scGm4_U2pd-rsGa6Edf6zsXFebrMT4RoyQz7-904_Wg,1072
|
8
|
+
pymiele-0.4.1.dist-info/METADATA,sha256=aVPPmByzvGP0qWX_vNtioah9RCxVrdqebzCswaaLQoU,747
|
9
|
+
pymiele-0.4.1.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
10
|
+
pymiele-0.4.1.dist-info/top_level.txt,sha256=BwkHrSO2w_Bfxh6s8Ikcao5enEuQOpQhJ3SwUXBqY10,8
|
11
|
+
pymiele-0.4.1.dist-info/RECORD,,
|
pymiele-0.4.0.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
pymiele/__init__.py,sha256=yaR_pvVA5HfAxQ9oHCk8CsoHfEkskdZLmxbY1QgrMBE,260
|
2
|
-
pymiele/code_enum.py,sha256=AAtxgSyNtX96SlfdrFZs1DVwqTDR0jG2KfmOFoAkjI4,1511
|
3
|
-
pymiele/const.py,sha256=9Lx35sUTeS1Vg7ISdkD9Yknfd8H7TAfNUIs8vCXPgFM,237
|
4
|
-
pymiele/model.py,sha256=xJ8-J2fRlNHCO6g2_8mzpv0IKroHB3-VllzfGyjs-s4,16355
|
5
|
-
pymiele/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
pymiele/pymiele.py,sha256=M5P_rW61XZV06aelw5i9-qzJ9exabMYgLcehzuKd7-Y,8723
|
7
|
-
pymiele-0.4.0.dist-info/licenses/LICENSE,sha256=scGm4_U2pd-rsGa6Edf6zsXFebrMT4RoyQz7-904_Wg,1072
|
8
|
-
pymiele-0.4.0.dist-info/METADATA,sha256=1E8syZTDYz-xkxh8HYppilAD2mjqYA1QWINZoCwYnIY,747
|
9
|
-
pymiele-0.4.0.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
10
|
-
pymiele-0.4.0.dist-info/top_level.txt,sha256=BwkHrSO2w_Bfxh6s8Ikcao5enEuQOpQhJ3SwUXBqY10,8
|
11
|
-
pymiele-0.4.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|