feat: adding timeout
This commit is contained in:
parent
4c7727b8a7
commit
47bd90bb35
1 changed files with 1 additions and 1 deletions
2
pulse.py
2
pulse.py
|
@ -52,7 +52,7 @@ def timeout_handler(signum, frame):
|
||||||
|
|
||||||
@home.event("live_measurement")
|
@home.event("live_measurement")
|
||||||
async def show_current_power(data):
|
async def show_current_power(data):
|
||||||
signal.alarm(0)
|
signal.alarm(8)
|
||||||
_incoming(data)
|
_incoming(data)
|
||||||
|
|
||||||
def stop(home):
|
def stop(home):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue