Rename last mode context to be room specific
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
const lastMode = flow.get('lastMode', "diskCon")
|
||||
const mbrLastMode = flow.get('mbrLastMode', "diskCon")
|
||||
const linkSource = msg._linkSource
|
||||
|
||||
let setTime = []
|
||||
let setType = []
|
||||
let setTopic = []
|
||||
|
||||
if (lastMode === 'day') {
|
||||
if (mbrLastMode === 'day') {
|
||||
setTime = 'day'
|
||||
setType = 'manual'
|
||||
setTopic = 'manual-day'
|
||||
} else if (lastMode === 'night') {
|
||||
} else if (mbrLastMode === 'night') {
|
||||
setTime = 'night'
|
||||
setType = 'manual'
|
||||
setTopic = 'manual-night'
|
||||
} else if (lastMode === 'bedtime') {
|
||||
} else if (mbrLastMode === 'bedtime') {
|
||||
setTime = 'bedtime'
|
||||
setType = 'manual'
|
||||
setTopic = 'manual-bedtime'
|
||||
|
Reference in New Issue
Block a user