boneIO 0.7.2.dev2__tar.gz → 0.7.2.dev3__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.
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/PKG-INFO +1 -1
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/__init__.py +2 -1
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/temp/__init__.py +2 -1
- boneIO-0.7.2.dev3/boneio/version.py +2 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/pyproject.toml +1 -1
- boneIO-0.7.2.dev2/boneio/version.py +0 -2
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/LICENSE +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/README.md +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/bonecli.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/const.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/cover.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/adc.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/binary_sensor.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/config.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/cover.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/event.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/event_all.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/led32x4A.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/output24x16A.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/output24x16A_v0.3.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/example_config/output32x5A.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/fonts/danube__.ttf +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/group/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/group/output.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/async_updater.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/click_timer.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/config.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/events.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/exceptions.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/filter.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/gpio.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/ha_discovery.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/loader.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/logger.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/mqtt.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/oled.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/onewire/W1ThermSensor.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/onewire/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/onewire/ds2482.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/onewire/onewire.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/pcf8575.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/queue.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/sensor/ina_219_smbus.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/state_manager.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/stats.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/timeperiod.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/util.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/helper/yaml_util.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/input/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/input/gpio.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/input/gpio_new.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/manager.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/modbus.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/mqtt_client.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/oled.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/relay/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/relay/basic.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/relay/gpio.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/relay/mcp.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/relay/pca.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/relay/pcf.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/runner.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/actions.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/actions_sensor.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/actions_switch.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/filters.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/filters_adc.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/id.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/schema.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/temp_unit.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/schema/update_interval.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/__init__.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/adc.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/gpio.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/gpio_new.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/ina219.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/dts1964_3f.json +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/pt100.json +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/r4dcb08.json +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/sdm120.json +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/sdm630.json +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/socomec_e23.json +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/modbus/sofar.json +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/temp/dallas.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/temp/lm75.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/boneio/sensor/temp/mcp9808.py +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/tests/32_5_config.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/tests/bandit.yaml +0 -0
- {boneIO-0.7.2.dev2 → boneIO-0.7.2.dev3}/tests/relay_32_5.py +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
1
2
|
import asyncio
|
|
2
3
|
import json
|
|
3
4
|
import logging
|
|
@@ -216,7 +217,7 @@ class ModbusSensor(BasicMqtt, AsyncUpdater):
|
|
|
216
217
|
self._id,
|
|
217
218
|
)
|
|
218
219
|
|
|
219
|
-
async def async_update(self, time: datetime) -> float
|
|
220
|
+
async def async_update(self, time: datetime) -> Optional[float]:
|
|
220
221
|
"""Fetch state periodically and send to MQTT."""
|
|
221
222
|
update_interval = self._update_interval.total_in_seconds
|
|
222
223
|
await self.check_availability()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"""Manage BoneIO onboard temp sensors."""
|
|
2
2
|
|
|
3
|
+
from __future__ import annotations
|
|
3
4
|
import asyncio
|
|
4
5
|
import logging
|
|
5
6
|
from datetime import datetime
|
|
@@ -24,7 +25,7 @@ class TempSensor(BasicMqtt, AsyncUpdater, Filter):
|
|
|
24
25
|
address: str,
|
|
25
26
|
id: str = DefaultName,
|
|
26
27
|
filters: list = ["round(x, 2)"],
|
|
27
|
-
**kwargs
|
|
28
|
+
**kwargs,
|
|
28
29
|
):
|
|
29
30
|
"""Initialize Temp class."""
|
|
30
31
|
super().__init__(id=id, topic_type=SENSOR, **kwargs)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|