show room attributes in web client, initialize weather correctly, fix comfy template path
This commit is contained in:
parent
4116951919
commit
fea124b3f3
|
@ -54,6 +54,11 @@ export function EntityDetails(props: EntityDetailsProps) {
|
||||||
attributes = item.attributes;
|
attributes = item.attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type === 'room') {
|
||||||
|
const room = entity as Room;
|
||||||
|
attributes = room.attributes;
|
||||||
|
}
|
||||||
|
|
||||||
return <Fragment>
|
return <Fragment>
|
||||||
<DialogTitle>{name}</DialogTitle>
|
<DialogTitle>{name}</DialogTitle>
|
||||||
<DialogContent dividers>
|
<DialogContent dividers>
|
||||||
|
|
|
@ -162,7 +162,7 @@ def generate_images(
|
||||||
)
|
)
|
||||||
|
|
||||||
env = Environment(
|
env = Environment(
|
||||||
loader=FileSystemLoader(["adventure/templates"]),
|
loader=FileSystemLoader(["taleweave/templates"]),
|
||||||
autoescape=select_autoescape(["json"]),
|
autoescape=select_autoescape(["json"]),
|
||||||
)
|
)
|
||||||
template = env.get_template("comfy.json.j2")
|
template = env.get_template("comfy.json.j2")
|
||||||
|
|
|
@ -36,6 +36,13 @@ rules:
|
||||||
set:
|
set:
|
||||||
weather: clear
|
weather: clear
|
||||||
|
|
||||||
|
# weather initial state
|
||||||
|
- group: weather
|
||||||
|
rule: |
|
||||||
|
"weather" not in attributes
|
||||||
|
set:
|
||||||
|
weather: clear
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
- match:
|
- match:
|
||||||
type: room
|
type: room
|
||||||
|
|
Loading…
Reference in New Issue