boneIO 0.5.0.dev6__tar.gz → 0.5.0.dev7__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.
Files changed (72) hide show
  1. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/PKG-INFO +1 -1
  2. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/__init__.py +7 -2
  3. boneIO-0.5.0.dev7/boneio/version.py +2 -0
  4. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/pyproject.toml +1 -1
  5. boneIO-0.5.0.dev6/boneio/version.py +0 -2
  6. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/LICENSE +0 -0
  7. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/README.md +0 -0
  8. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/__init__.py +0 -0
  9. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/bonecli.py +0 -0
  10. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/const.py +0 -0
  11. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/cover.py +0 -0
  12. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/__init__.py +0 -0
  13. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/adc.yaml +0 -0
  14. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/config.yaml +0 -0
  15. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/cover.yaml +0 -0
  16. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/input.yaml +0 -0
  17. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/output24x16A.yaml +0 -0
  18. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/output32x5A.yaml +0 -0
  19. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/fonts/danube__.ttf +0 -0
  20. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/__init__.py +0 -0
  21. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/async_updater.py +0 -0
  22. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/config.py +0 -0
  23. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/events.py +0 -0
  24. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/exceptions.py +0 -0
  25. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/filter.py +0 -0
  26. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/gpio.py +0 -0
  27. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/ha_discovery.py +0 -0
  28. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/loader.py +0 -0
  29. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/logger.py +0 -0
  30. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/mqtt.py +0 -0
  31. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/oled.py +0 -0
  32. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/W1ThermSensor.py +0 -0
  33. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/__init__.py +0 -0
  34. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/ds2482.py +0 -0
  35. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/onewire.py +0 -0
  36. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/queue.py +0 -0
  37. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/state_manager.py +0 -0
  38. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/stats.py +0 -0
  39. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/timeperiod.py +0 -0
  40. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/util.py +0 -0
  41. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/yaml_util.py +0 -0
  42. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/input/__init__.py +0 -0
  43. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/input/gpio.py +0 -0
  44. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/manager.py +0 -0
  45. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/modbus.py +0 -0
  46. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/mqtt_client.py +0 -0
  47. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/oled.py +0 -0
  48. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/__init__.py +0 -0
  49. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/basic.py +0 -0
  50. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/gpio.py +0 -0
  51. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/mcp.py +0 -0
  52. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/runner.py +0 -0
  53. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/actions.yaml +0 -0
  54. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/actions_sensor.yaml +0 -0
  55. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/actions_switch.yaml +0 -0
  56. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/filters.yaml +0 -0
  57. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/filters_adc.yaml +0 -0
  58. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/schema.yaml +0 -0
  59. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/update_interval.yaml +0 -0
  60. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/__init__.py +0 -0
  61. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/adc.py +0 -0
  62. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/gpio.py +0 -0
  63. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/sdm120.json +0 -0
  64. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/sdm630.json +0 -0
  65. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/sofar.json +0 -0
  66. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/__init__.py +0 -0
  67. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/dallas.py +0 -0
  68. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/lm75.py +0 -0
  69. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/mcp9808.py +0 -0
  70. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/tests/32_5_config.yaml +0 -0
  71. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/tests/bandit.yaml +0 -0
  72. {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/tests/relay_32_5.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boneIO
3
- Version: 0.5.0dev6
3
+ Version: 0.5.0dev7
4
4
  Summary: Python App for BoneIO
5
5
  License: GNU General Public License v3.0
6
6
  Author-email: Paweł Szafer <pszafer@gmail.com>
@@ -123,7 +123,9 @@ class ModbusSensor(BasicMqtt, AsyncUpdater):
123
123
  self, id: str, sdm_name: str, sensor_id: str, **kwargs
124
124
  ) -> None:
125
125
  """Send HA autodiscovery information for each Modbus sensor."""
126
- _LOGGER.debug("Sending HA discovery for sensor %s %s.", sdm_name, sensor_id)
126
+ _LOGGER.debug(
127
+ "Sending HA discovery for modbus sensor %s %s.", sdm_name, sensor_id
128
+ )
127
129
  topic = (
128
130
  f"{self._config_helper.ha_discovery_prefix}/{SENSOR}/{self._config_helper.topic_prefix}{id}"
129
131
  f"/{id}{sensor_id.replace('_', '').replace(' ', '').lower()}/config"
@@ -164,6 +166,9 @@ class ModbusSensor(BasicMqtt, AsyncUpdater):
164
166
  **kwargs,
165
167
  )
166
168
  return datetime.now()
169
+ _LOGGER.error(
170
+ "Discovery for %s not sent. First register not available.", self._id
171
+ )
167
172
  return False
168
173
 
169
174
  async def check_availability(self) -> None:
@@ -182,7 +187,7 @@ class ModbusSensor(BasicMqtt, AsyncUpdater):
182
187
  address=first_register_base[REGISTERS][0][ADDRESS],
183
188
  method=register_method,
184
189
  )
185
- if register:
190
+ if register is not None:
186
191
  self._discovery_sent = self._send_discovery_for_all_registers(
187
192
  register
188
193
  )
@@ -0,0 +1,2 @@
1
+ # flake8: noqa
2
+ __version__ = "0.5.0dev7"
@@ -27,7 +27,7 @@ dependencies = [
27
27
  "w1thermsensor[async]>=2.0.0",
28
28
  ]
29
29
  requires-python = ">=3.7"
30
- version = "0.5.0dev6"
30
+ version = "0.5.0dev7"
31
31
 
32
32
  [project.license]
33
33
  text = "GNU General Public License v3.0"
@@ -1,2 +0,0 @@
1
- # flake8: noqa
2
- __version__ = "0.5.0dev6"
File without changes
File without changes
File without changes
File without changes
File without changes