瀏覽代碼

devdi update integration

tags/v1.3.0
Dirk Alders 1 年之前
父節點
當前提交
7462d7278e
共有 6 個檔案被更改,包括 8 行新增8 行删除
  1. 1
    1
      function/first_floor_east.py
  2. 1
    1
      function/first_floor_west.py
  3. 1
    1
      function/garden.py
  4. 1
    1
      function/ground_floor_west.py
  5. 1
    1
      function/stairway.py
  6. 3
    3
      smart_brain.py

+ 1
- 1
function/first_floor_east.py 查看文件

@@ -3,7 +3,7 @@
3 3
 #
4 4
 
5 5
 import config
6
-import devdi.props as props
6
+from devdi import topic as props
7 7
 from devices import group
8 8
 from function.db import get_radiator_data, set_radiator_data
9 9
 from function.helpers import day_event

+ 1
- 1
function/first_floor_west.py 查看文件

@@ -3,7 +3,7 @@
3 3
 #
4 4
 
5 5
 import config
6
-import devdi.props as props
6
+from devdi import topic as props
7 7
 from function.db import get_radiator_data, set_radiator_data
8 8
 from function.modules import heating_function
9 9
 from function.rooms import room, room_collection

+ 1
- 1
function/garden.py 查看文件

@@ -3,7 +3,7 @@
3 3
 #
4 4
 
5 5
 import config
6
-import devdi.props as props
6
+import devdi.topic as props
7 7
 from devices import group
8 8
 from function.db import get_radiator_data, set_radiator_data
9 9
 from function.helpers import day_event

+ 1
- 1
function/ground_floor_west.py 查看文件

@@ -3,7 +3,7 @@
3 3
 #
4 4
 
5 5
 import config
6
-from devdi import props
6
+from devdi import topic as props
7 7
 from devices import group
8 8
 from function.db import get_radiator_data, set_radiator_data
9 9
 from function.modules import brightness_choose_n_action, heating_function, switched_light

+ 1
- 1
function/stairway.py 查看文件

@@ -3,7 +3,7 @@
3 3
 #
4 4
 
5 5
 import config
6
-from devdi import props
6
+from devdi import topic as props
7 7
 import logging
8 8
 from function.modules import motion_sensor_light
9 9
 from function.rooms import room, room_collection

+ 3
- 3
smart_brain.py 查看文件

@@ -1,5 +1,5 @@
1 1
 import config
2
-import devdi
2
+import devdi.devices
3 3
 import function
4 4
 import json
5 5
 import logging
@@ -58,12 +58,12 @@ if __name__ == "__main__":
58 58
     #
59 59
     # Smarthome physical Devices
60 60
     #
61
-    pd = devdi.physical_devices(mc)
61
+    pd = devdi.devices.physical_devices(mc)
62 62
 
63 63
     #
64 64
     # Smarthome physical Devices
65 65
     #
66
-    vd = devdi.videv_devices(mc)
66
+    vd = devdi.devices.videv_devices(mc)
67 67
 
68 68
     #
69 69
     # Smart Home Functionality

Loading…
取消
儲存