mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 13:34:55 +01:00
fix index url bug
This commit is contained in:
parent
0d2770ef4c
commit
eb22311de7
7 changed files with 39 additions and 16 deletions
5
cbpi/config/actor.json
Normal file
5
cbpi/config/actor.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"data": [
|
||||
|
||||
]
|
||||
}
|
5
cbpi/config/kettle.json
Normal file
5
cbpi/config/kettle.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"data": [
|
||||
|
||||
]
|
||||
}
|
5
cbpi/config/sensor.json
Normal file
5
cbpi/config/sensor.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"data": [
|
||||
|
||||
]
|
||||
}
|
20
cbpi/config/step_data.json
Normal file
20
cbpi/config/step_data.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"basic": {
|
||||
"name": "WOOHOo"
|
||||
},
|
||||
"profile": [
|
||||
{
|
||||
"id": "MSXuATqL56EAeCXrg3XLuY",
|
||||
"name": "Test",
|
||||
"props": {
|
||||
"Param1": 123,
|
||||
"Param2": "HALLO",
|
||||
"Param3": 1,
|
||||
"count": 6,
|
||||
"wohoo": 0
|
||||
},
|
||||
"status": "D",
|
||||
"type": "CustomStep2"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -231,7 +231,7 @@ class CraftBeerPi():
|
|||
def _setup_http_index(self):
|
||||
async def http_index(request):
|
||||
url = self.config.static.get("index_url")
|
||||
py
|
||||
|
||||
if url is not None:
|
||||
|
||||
raise web.HTTPFound(url)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"name": "Test1112222",
|
||||
"props": {},
|
||||
"state": {
|
||||
"value": 0
|
||||
"value": 49
|
||||
},
|
||||
"type": "CustomSensor"
|
||||
}
|
||||
|
|
|
@ -1,20 +1,8 @@
|
|||
{
|
||||
"basic": {
|
||||
"name": "WOOHOo"
|
||||
"name": ""
|
||||
},
|
||||
"profile": [
|
||||
{
|
||||
"id": "MSXuATqL56EAeCXrg3XLuY",
|
||||
"name": "Test",
|
||||
"props": {
|
||||
"Param1": 123,
|
||||
"Param2": "HALLO",
|
||||
"Param3": 1,
|
||||
"count": 6,
|
||||
"wohoo": 0
|
||||
},
|
||||
"status": "D",
|
||||
"type": "CustomStep2"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue