updated as in the interactions api
This commit is contained in:
parent
e8e32e1886
commit
c617ebf868
12 changed files with 66 additions and 50 deletions
|
|
@ -36,7 +36,7 @@ const densityMap = new Map<number, number>([
|
|||
//once we have numbers for presets it may never be used again
|
||||
export default function GateDeviceInteraction(props: Props) {
|
||||
const { open, close, gate, compDevice, densityTemp } = props;
|
||||
const [{ user }] = useGlobalState();
|
||||
const [{ user, as }] = useGlobalState();
|
||||
const [lowDelta, setLowDelta] = useState(0);
|
||||
const [highDelta, setHighDelta] = useState(0);
|
||||
const [greenComponent, setGreenComponent] = useState<Component>();
|
||||
|
|
@ -207,7 +207,7 @@ export default function GateDeviceInteraction(props: Props) {
|
|||
interactions: [greenToggle, redToggle]
|
||||
});
|
||||
interactionsAPI
|
||||
.addMultiInteractions(deviceID, multi)
|
||||
.addMultiInteractions(deviceID, multi, as)
|
||||
.then(resp => {
|
||||
openSnack("Interactions added");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue