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;
|
||||
}
|
||||
|
||||
if (type === 'room') {
|
||||
const room = entity as Room;
|
||||
attributes = room.attributes;
|
||||
}
|
||||
|
||||
return <Fragment>
|
||||
<DialogTitle>{name}</DialogTitle>
|
||||
<DialogContent dividers>
|
||||
|
|
|
@ -162,7 +162,7 @@ def generate_images(
|
|||
)
|
||||
|
||||
env = Environment(
|
||||
loader=FileSystemLoader(["adventure/templates"]),
|
||||
loader=FileSystemLoader(["taleweave/templates"]),
|
||||
autoescape=select_autoescape(["json"]),
|
||||
)
|
||||
template = env.get_template("comfy.json.j2")
|
||||
|
|
|
@ -36,6 +36,13 @@ rules:
|
|||
set:
|
||||
weather: clear
|
||||
|
||||
# weather initial state
|
||||
- group: weather
|
||||
rule: |
|
||||
"weather" not in attributes
|
||||
set:
|
||||
weather: clear
|
||||
|
||||
labels:
|
||||
- match:
|
||||
type: room
|
||||
|
|
Loading…
Reference in New Issue