fix index url bug

This commit is contained in:
Manuel Fritsch 2021-01-24 22:22:07 +01:00
parent 0d2770ef4c
commit eb22311de7
7 changed files with 39 additions and 16 deletions

5
cbpi/config/actor.json Normal file
View file

@ -0,0 +1,5 @@
{
"data": [
]
}

5
cbpi/config/kettle.json Normal file
View file

@ -0,0 +1,5 @@
{
"data": [
]
}

5
cbpi/config/sensor.json Normal file
View file

@ -0,0 +1,5 @@
{
"data": [
]
}

View 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"
}
]
}

View file

@ -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)

View file

@ -5,7 +5,7 @@
"name": "Test1112222",
"props": {},
"state": {
"value": 0
"value": 49
},
"type": "CustomSensor"
}

View file

@ -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"
}
]
}