boneIO 0.9.4.dev2__py3-none-any.whl → 0.9.4.dev3__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/manager.py CHANGED
@@ -778,13 +778,17 @@ class Manager:
778
778
  """Callback for receiving action from Mqtt."""
779
779
  _LOGGER.debug("Processing topic %s with message %s.", topic, message)
780
780
  if topic.startswith(
781
- f"{self._config_helper.topic_prefix}/status"
781
+ f"{self._config_helper.ha_discovery_prefix}/status"
782
782
  ):
783
783
  if message == ONLINE:
784
784
  self.resend_autodiscovery()
785
785
  self._event_bus.signal_ha_online()
786
786
  return
787
- assert topic.startswith(self._config_helper.cmd_topic_prefix)
787
+ try:
788
+ assert topic.startswith(self._config_helper.cmd_topic_prefix)
789
+ except AssertionError as err:
790
+ _LOGGER.error("Wrong topic %s. Error %s", topic, err)
791
+ return
788
792
  topic_parts_raw = topic[
789
793
  len(self._config_helper.cmd_topic_prefix) :
790
794
  ].split("/")
boneio/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  # flake8: noqa
2
- __version__ = "0.9.4dev2"
2
+ __version__ = "0.9.4dev3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boneio
3
- Version: 0.9.4dev2
3
+ Version: 0.9.4dev3
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>
@@ -57,7 +57,7 @@ boneio/helper/yaml_util.py,sha256=SW7u6i4Re_u4bm-aW-_Wk9piQz949kgjiwk8Y3kTObY,18
57
57
  boneio/input/__init__.py,sha256=8Hcps-wCCl6bCAMoEmDJecR-Q9giFL29AvG1ZGe0dZw,200
58
58
  boneio/input/gpio.py,sha256=vdQuvWlwV41mbLgLRi-z1vpmRj61HDsmbJrYUoCOHkM,2675
59
59
  boneio/input/gpio_new.py,sha256=Br2Lw5bci1_qb_UO63tJr4uBSjCkBvjGdzla4s1ctS8,3050
60
- boneio/manager.py,sha256=XC-gWMaWJPnDkAcZSWB_sU8LYOHc6YWDcrGUoZ73Viw,32887
60
+ boneio/manager.py,sha256=Ezqv_SkIGImpaCUMpTRmUzBr-i_hvGKc4qqjfXXSOtM,33034
61
61
  boneio/modbus/__init__.py,sha256=yeHIxZ0_u7eCL7CqScvob5Utcru6Iza0LEtTagEtNtw,116
62
62
  boneio/modbus/client.py,sha256=v_w6HOFH4e-CWcSjpyBojLhglIqJ6kPVXOLEDAEmsI0,8137
63
63
  boneio/modbus/cwt.json,sha256=PCn9t5wQkNCD8AqwXSoJ3cEm50bKAX4FmPw6fWCvLrg,908
@@ -108,7 +108,7 @@ boneio/sensor/temp/__init__.py,sha256=XA0Jew4CJqyOCn06D6pXTELhT60885UaTxFdIqtXE-
108
108
  boneio/sensor/temp/dallas.py,sha256=qOhoZvBqgwDTy3Q7r1UUFbGoteUKMFsqpjBQgPm16rw,2690
109
109
  boneio/sensor/temp/lm75.py,sha256=-mpOv78429plRPBp9s09Ljz1x2Bdxuagalqz40vlAKE,243
110
110
  boneio/sensor/temp/mcp9808.py,sha256=yAh5yJzZLGTqa39xV4fyqsruj7oy3niOZAUV2W6eyCM,271
111
- boneio/version.py,sha256=hFc5nzKzhRB3ECxi8iXusf9NHuTCGShZNbWGN4KIw3s,41
111
+ boneio/version.py,sha256=P3emYYziFtHj-OQkAq2q9VzC2OMbVqk1DkJUp-EbPKQ,41
112
112
  boneio/webui/app.py,sha256=JG6oi0QcQua4jk8uYpSXoDyhMCiLxx3WRzs9PLLOIKo,33323
113
113
  boneio/webui/frontend-dist/assets/abap-BrgZPUOV.js,sha256=o-KiQdqDx6qAg2rOn7OyokL0WP-Rffnxk2Py5kMN0Fk,14409
114
114
  boneio/webui/frontend-dist/assets/apex-DyP6w7ZV.js,sha256=nm1bQzOU_JCzp8WFFKtYxrtJ50DvA-FGkoo_0Ala62g,4198
@@ -229,8 +229,8 @@ boneio/webui/schema/sensor.schema.json,sha256=OGRunW_aAOfp2q0IU1aD3WRO7wEFsSknCl
229
229
  boneio/webui/schema/web.schema.json,sha256=hoixKf8J51D-UxGawcnD1UsgQFY07bqCQNereTaaNqw,1342
230
230
  boneio/webui/web_server.py,sha256=CDB19_yZpStAnrbFjucE7AN8i_pShMXjAbBCmNwdaCE,5102
231
231
  boneio/webui/websocket_manager.py,sha256=K9KXIT0OvK_ILNmM5GIH1f7FiYkk0vTNM0iJQh5Jdfg,5365
232
- boneio-0.9.4.dev2.dist-info/entry_points.txt,sha256=Igl1SMDEWwMg144bwRz28UOCb80hdxomC99QJ3u6qC0,46
233
- boneio-0.9.4.dev2.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
234
- boneio-0.9.4.dev2.dist-info/METADATA,sha256=A1tu94El04iuUEBv8BgUht4zGbt08gwaZQ0duUCtcbo,1977
235
- boneio-0.9.4.dev2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
236
- boneio-0.9.4.dev2.dist-info/RECORD,,
232
+ boneio-0.9.4.dev3.dist-info/entry_points.txt,sha256=Igl1SMDEWwMg144bwRz28UOCb80hdxomC99QJ3u6qC0,46
233
+ boneio-0.9.4.dev3.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
234
+ boneio-0.9.4.dev3.dist-info/METADATA,sha256=28AjOJMUabu70s3fOG0wLUhlmRqOBHYYLg4naQJLT2E,1977
235
+ boneio-0.9.4.dev3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
236
+ boneio-0.9.4.dev3.dist-info/RECORD,,