boneIO 0.12.0.dev1__py3-none-any.whl → 0.12.0.dev2__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.
- boneio/helper/gpio.py +6 -2
- boneio/manager.py +6 -2
- boneio/relay/basic.py +5 -4
- boneio/sensor/gpio_new.py +2 -1
- boneio/version.py +1 -1
- boneio/webui/frontend-dist/assets/{cssMode-DJ-w1wQ_.js → cssMode-CIugHNWc.js} +1 -1
- boneio/webui/frontend-dist/assets/{freemarker2-BvGDq3Vb.js → freemarker2-c6aq0KPQ.js} +1 -1
- boneio/webui/frontend-dist/assets/{handlebars-cWEntp3o.js → handlebars-Blio5gIC.js} +1 -1
- boneio/webui/frontend-dist/assets/{html-BaI4o9eH.js → html-nAjYqGE2.js} +1 -1
- boneio/webui/frontend-dist/assets/{htmlMode-DC3UiglP.js → htmlMode-BNz1ae3o.js} +1 -1
- boneio/webui/frontend-dist/assets/{index-BHcurHQx.js → index-B0-VO6Hk.js} +7 -7
- boneio/webui/frontend-dist/assets/index-C1Lt6bAz.css +1 -0
- boneio/webui/frontend-dist/assets/{javascript-BBsk_Scp.js → javascript-BlgLdPQ3.js} +1 -1
- boneio/webui/frontend-dist/assets/{jsonMode-Cm90tqtB.js → jsonMode-Bn3YbulZ.js} +1 -1
- boneio/webui/frontend-dist/assets/{liquid-C_Qg2XEe.js → liquid-Goo_mcvP.js} +1 -1
- boneio/webui/frontend-dist/assets/{mdx-BBbxndTk.js → mdx-hECGU4Dx.js} +1 -1
- boneio/webui/frontend-dist/assets/{python-ClQ3TDOx.js → python-D3qegG3u.js} +1 -1
- boneio/webui/frontend-dist/assets/{razor-bPNgmESS.js → razor-CMWhWMgO.js} +1 -1
- boneio/webui/frontend-dist/assets/{tsMode-DwaObZuA.js → tsMode-DDshvxc6.js} +1 -1
- boneio/webui/frontend-dist/assets/{typescript-BrLXtS1z.js → typescript-CXWWf43Y.js} +1 -1
- boneio/webui/frontend-dist/assets/{xml-BRkAzKUE.js → xml-CeRIMZvD.js} +1 -1
- boneio/webui/frontend-dist/assets/{yaml-CDQ40CuG.js → yaml-DBApS5UB.js} +1 -1
- boneio/webui/frontend-dist/index.html +2 -2
- {boneio-0.12.0.dev1.dist-info → boneio-0.12.0.dev2.dist-info}/METADATA +1 -1
- {boneio-0.12.0.dev1.dist-info → boneio-0.12.0.dev2.dist-info}/RECORD +28 -28
- boneio/webui/frontend-dist/assets/index-Do1QR2cE.css +0 -1
- {boneio-0.12.0.dev1.dist-info → boneio-0.12.0.dev2.dist-info}/WHEEL +0 -0
- {boneio-0.12.0.dev1.dist-info → boneio-0.12.0.dev2.dist-info}/entry_points.txt +0 -0
- {boneio-0.12.0.dev1.dist-info → boneio-0.12.0.dev2.dist-info}/licenses/LICENSE +0 -0
boneio/helper/gpio.py
CHANGED
|
@@ -162,11 +162,15 @@ class GpioBaseClass:
|
|
|
162
162
|
self, click_type: ClickTypes, duration: float | None = None
|
|
163
163
|
) -> None:
|
|
164
164
|
"""Handle press callback."""
|
|
165
|
+
self._last_timestamp = time.time()
|
|
165
166
|
_LOGGER.debug(
|
|
166
|
-
"Press callback: %s on pin %s - %s
|
|
167
|
+
"Press callback: %s on pin %s - %s at %s",
|
|
168
|
+
click_type,
|
|
169
|
+
self._pin,
|
|
170
|
+
self.name,
|
|
171
|
+
self._last_timestamp,
|
|
167
172
|
)
|
|
168
173
|
self._last_state = click_type
|
|
169
|
-
self._last_timestamp = time.time()
|
|
170
174
|
self._loop.create_task(
|
|
171
175
|
self.async_press_callback(
|
|
172
176
|
click_type,
|
boneio/manager.py
CHANGED
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import asyncio
|
|
4
4
|
import json
|
|
5
5
|
import logging
|
|
6
|
+
import time
|
|
6
7
|
from collections import deque
|
|
7
8
|
from typing import Callable, Coroutine, List, Optional, Set, Tuple
|
|
8
9
|
|
|
@@ -767,11 +768,14 @@ class Manager:
|
|
|
767
768
|
)
|
|
768
769
|
if output and action_to_execute:
|
|
769
770
|
_LOGGER.debug(
|
|
770
|
-
"Executing action %s for output %s",
|
|
771
|
+
"Executing action %s for output %s at %s",
|
|
772
|
+
action_to_execute,
|
|
773
|
+
output.name,
|
|
774
|
+
time.time(),
|
|
771
775
|
)
|
|
772
776
|
_f = getattr(output, action_to_execute)
|
|
773
777
|
if _f:
|
|
774
|
-
|
|
778
|
+
self._loop.create_task(_f(**extra_data))
|
|
775
779
|
else:
|
|
776
780
|
if not action_to_execute:
|
|
777
781
|
_LOGGER.warning(
|
boneio/relay/basic.py
CHANGED
|
@@ -314,13 +314,14 @@ class BasicRelay(BasicMqtt):
|
|
|
314
314
|
asyncio.create_task(self.async_send_state())
|
|
315
315
|
|
|
316
316
|
|
|
317
|
-
async def async_toggle(self,
|
|
317
|
+
async def async_toggle(self, timestamp=None) -> None:
|
|
318
318
|
"""Toggle relay."""
|
|
319
|
-
|
|
319
|
+
now = time.time()
|
|
320
|
+
_LOGGER.debug("Toggle relay %s at %s.", self.name, now)
|
|
320
321
|
if self.is_active:
|
|
321
|
-
await self.async_turn_off(time=
|
|
322
|
+
await self.async_turn_off(time=timestamp)
|
|
322
323
|
else:
|
|
323
|
-
await self.async_turn_on(time=
|
|
324
|
+
await self.async_turn_on(time=timestamp)
|
|
324
325
|
|
|
325
326
|
def turn_on(self, time=None) -> None:
|
|
326
327
|
"""Call turn on action."""
|
boneio/sensor/gpio_new.py
CHANGED
|
@@ -47,9 +47,10 @@ class GpioInputBinarySensorNew(GpioBaseClass):
|
|
|
47
47
|
if self._pressed_state == PRESSED:
|
|
48
48
|
self.button_pressed_time = time_now
|
|
49
49
|
_LOGGER.debug(
|
|
50
|
-
"Binary sensor: %s event on pin %s - %s",
|
|
50
|
+
"Binary sensor: %s event on pin %s - %s at %s",
|
|
51
51
|
self._pressed_state,
|
|
52
52
|
self._pin,
|
|
53
53
|
self.name,
|
|
54
|
+
time_now,
|
|
54
55
|
)
|
|
55
56
|
self.press_callback(click_type=self._pressed_state, duration=None)
|
boneio/version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
|
-
__version__ = "0.12.
|
|
2
|
+
__version__ = "0.12.0dev2"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as et}from"./index-
|
|
1
|
+
import{m as et}from"./index-B0-VO6Hk.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as f}from"./index-
|
|
1
|
+
import{m as f}from"./index-B0-VO6Hk.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as l}from"./index-
|
|
1
|
+
import{m as l}from"./index-B0-VO6Hk.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as s}from"./index-
|
|
1
|
+
import{m as s}from"./index-B0-VO6Hk.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as lt}from"./index-
|
|
1
|
+
import{m as lt}from"./index-B0-VO6Hk.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|