浏览代码

config template to jinja2

master
Dirk Alders 9 个月前
父节点
当前提交
9c124d9665
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      config_example/config.j2

config_example/config.py → config_example/config.j2 查看文件

8
 
8
 
9
 __BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
9
 __BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
10
 
10
 
11
-MQTT_SERVER = "<mqtt_smarthome_hostname>"
12
-MQTT_USER = "<mqtt_smarthome_username>"
13
-MQTT_PASS = "<mqtt_smarthome_password>"
14
-MQTT_TOPIC = "<mqtt_remote_topic>"
11
+MQTT_SERVER = "{{ smart_sat_remotectrl_hostname }}"
12
+MQTT_USER = "{{ smart_sat_remotectrl_username }}"
13
+MQTT_PASS = "{{ smart_sat_remotectrl_password }}"
14
+MQTT_TOPIC = "{{ smart_sat_remotectrl_topic }}"
15
 
15
 
16
 SUPPORTED_REMOTES = {
16
 SUPPORTED_REMOTES = {
17
     amplifier.NAME: amplifier.ALL,
17
     amplifier.NAME: amplifier.ALL,

正在加载...
取消
保存