forked from M-Labs/thermostat
aioclient: More accurate DFU docstring
This commit is contained in:
parent
d1692ad0e6
commit
52550cf721
@ -243,11 +243,11 @@ class AsyncioClient:
|
|||||||
await self.disconnect()
|
await self.disconnect()
|
||||||
|
|
||||||
async def dfu(self):
|
async def dfu(self):
|
||||||
"""Put the Thermostat in DFU update mode
|
"""Put the Thermostat in DFU mode
|
||||||
|
|
||||||
The client is disconnected as the Thermostat stops responding to
|
The client is disconnected as the Thermostat stops responding to
|
||||||
TCP commands in DFU update mode. The only way to exit it is by
|
TCP commands in DFU mode. To exit it, submit a DFU leave request
|
||||||
power-cycling.
|
or power-cycle the Thermostat.
|
||||||
"""
|
"""
|
||||||
async with self._command_lock:
|
async with self._command_lock:
|
||||||
self._writer.write("dfu\n".encode("utf-8"))
|
self._writer.write("dfu\n".encode("utf-8"))
|
||||||
|
Loading…
Reference in New Issue
Block a user