connected the api to the button to update the controller state
This commit is contained in:
parent
a9f5b9594b
commit
b992b6785c
2 changed files with 44 additions and 21 deletions
|
|
@ -1556,7 +1556,7 @@ export default function BinVisualizer(props: Props) {
|
|||
let device = componentDevices.get(fan.key)
|
||||
if(fanComp && device){
|
||||
return (
|
||||
<BinControllerDisplay component={fanComp} deviceID={device}/>
|
||||
<BinControllerDisplay component={fanComp} deviceID={device} currentState/>
|
||||
)
|
||||
}
|
||||
})}
|
||||
|
|
@ -1565,7 +1565,7 @@ export default function BinVisualizer(props: Props) {
|
|||
let device = componentDevices.get(heater.key)
|
||||
if(heaterComp && device){
|
||||
return (
|
||||
<BinControllerDisplay component={heaterComp} deviceID={device}/>
|
||||
<BinControllerDisplay component={heaterComp} deviceID={device} currentState={heater.state}/>
|
||||
)
|
||||
}
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue