Replace all "var" usage with const and/or let
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
var states = global.get('homeassistant.homeAssistant.states')
|
||||
var room = states['input_select.kallen_activity_room'].state
|
||||
var activity = states['input_select.kallen_activities'].state
|
||||
const states = global.get('homeassistant.homeAssistant.states')
|
||||
const room = states['input_select.kallen_activity_room'].state
|
||||
const activity = states['input_select.kallen_activities'].state
|
||||
|
||||
msg.topic = room
|
||||
msg.activity = activity
|
||||
|
Reference in New Issue
Block a user