boneIO 0.9.0.dev6__py3-none-any.whl → 0.9.0.dev7__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
@@ -20,6 +20,7 @@ from boneio.const import (
20
20
  EVENT_ENTITY,
21
21
  ID,
22
22
  INA219,
23
+ INPUT,
23
24
  LED,
24
25
  LIGHT,
25
26
  LM75,
@@ -693,10 +694,10 @@ class Manager:
693
694
  topic = f"{self._config_helper.topic_prefix}/{gpio.input_type}/{gpio.pin}"
694
695
 
695
696
  def generate_payload():
696
- if gpio.input_type == EVENT_ENTITY:
697
+ if gpio.input_type == INPUT:
697
698
  if duration:
698
- return {"action": x, "duration": duration}
699
- return {"action": x}
699
+ return {"event_type": x, "duration": duration}
700
+ return {"event_type": x}
700
701
  return x
701
702
 
702
703
  for action_definition in actions:
boneio/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  # flake8: noqa
2
- __version__ = "0.9.0dev6"
2
+ __version__ = "0.9.0dev7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boneio
3
- Version: 0.9.0dev6
3
+ Version: 0.9.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>
@@ -52,7 +52,7 @@ boneio/helper/yaml_util.py,sha256=0E3lST1sfXSlWcL8GoKOyiipkHdMbd9JJ20lgE9WN30,18
52
52
  boneio/input/__init__.py,sha256=8Hcps-wCCl6bCAMoEmDJecR-Q9giFL29AvG1ZGe0dZw,200
53
53
  boneio/input/gpio.py,sha256=vdQuvWlwV41mbLgLRi-z1vpmRj61HDsmbJrYUoCOHkM,2675
54
54
  boneio/input/gpio_new.py,sha256=Br2Lw5bci1_qb_UO63tJr4uBSjCkBvjGdzla4s1ctS8,3050
55
- boneio/manager.py,sha256=3HbAUiqICP5zKgWIq77dJubRM8vWoIYA1-_NsOtynjs,32384
55
+ boneio/manager.py,sha256=1Ud1QFeNuBFD83mcIAV7-zTxf_DvYBaGF48HbNYvQDs,32396
56
56
  boneio/modbus/__init__.py,sha256=yeHIxZ0_u7eCL7CqScvob5Utcru6Iza0LEtTagEtNtw,116
57
57
  boneio/modbus/client.py,sha256=v_w6HOFH4e-CWcSjpyBojLhglIqJ6kPVXOLEDAEmsI0,8137
58
58
  boneio/modbus/cwt.json,sha256=PCn9t5wQkNCD8AqwXSoJ3cEm50bKAX4FmPw6fWCvLrg,908
@@ -102,7 +102,7 @@ boneio/sensor/temp/__init__.py,sha256=XA0Jew4CJqyOCn06D6pXTELhT60885UaTxFdIqtXE-
102
102
  boneio/sensor/temp/dallas.py,sha256=qOhoZvBqgwDTy3Q7r1UUFbGoteUKMFsqpjBQgPm16rw,2690
103
103
  boneio/sensor/temp/lm75.py,sha256=-mpOv78429plRPBp9s09Ljz1x2Bdxuagalqz40vlAKE,243
104
104
  boneio/sensor/temp/mcp9808.py,sha256=yAh5yJzZLGTqa39xV4fyqsruj7oy3niOZAUV2W6eyCM,271
105
- boneio/version.py,sha256=THlVpJxbhu5ie3zafJLC0NApgBlcR9WGBK41G0bSUeg,41
105
+ boneio/version.py,sha256=1IaGwt2CoqkgXu8ET472WsAneuZYLESrJhvDgPXAb6c,41
106
106
  boneio/webui/app.py,sha256=FHwJWN_mL-HE5RTO52cN6D-mJT6GCqZvCmyj-OUKOqU,33324
107
107
  boneio/webui/frontend-dist/assets/css.worker-YzWC8yAR.js,sha256=douqDj35IKu_om26K8yrCunrlBO_la5_sb2xVAeR8Yo,1013942
108
108
  boneio/webui/frontend-dist/assets/editor.worker-D5ngByhL.js,sha256=H9RzNrxrlxWoNNI8HnZmmC6956wLOkWESTcXfNXf6AA,234383
@@ -116,8 +116,8 @@ boneio/webui/frontend-dist/boneio_fav.svg,sha256=H0jyvJDffm3qNn5UFgWkA4eKL3adx5G
116
116
  boneio/webui/frontend-dist/index.html,sha256=SBV8HWXNXVcQmSXHah6YYgoDLibhjPDPX3ItIdTemms,472
117
117
  boneio/webui/web_server.py,sha256=yU8uQL0XNCxGvxJ-oOOo6y9_g1pGjyzchJYFZmMdBlk,4492
118
118
  boneio/webui/websocket_manager.py,sha256=K9KXIT0OvK_ILNmM5GIH1f7FiYkk0vTNM0iJQh5Jdfg,5365
119
- boneio-0.9.0.dev6.dist-info/entry_points.txt,sha256=Igl1SMDEWwMg144bwRz28UOCb80hdxomC99QJ3u6qC0,46
120
- boneio-0.9.0.dev6.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
121
- boneio-0.9.0.dev6.dist-info/METADATA,sha256=15BfJq1N7UT2lYyoz7IziQWCDbEyCZOEs_FTynIvbog,1948
122
- boneio-0.9.0.dev6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
- boneio-0.9.0.dev6.dist-info/RECORD,,
119
+ boneio-0.9.0.dev7.dist-info/entry_points.txt,sha256=Igl1SMDEWwMg144bwRz28UOCb80hdxomC99QJ3u6qC0,46
120
+ boneio-0.9.0.dev7.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
121
+ boneio-0.9.0.dev7.dist-info/METADATA,sha256=UHTBbHEWTq6wnZiAsITC4qgy8TgKZgsQUmflHBg0NRc,1948
122
+ boneio-0.9.0.dev7.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
+ boneio-0.9.0.dev7.dist-info/RECORD,,