Replace all "var" usage with const and/or let

This commit is contained in:
2024-02-13 13:59:21 -05:00
parent c70268b854
commit e666b306fa
13 changed files with 263 additions and 20 deletions

View File

@ -1,9 +1,9 @@
var states = global.get('homeassistant.homeAssistant.states')
var room = states['input_select.kallen_activity_room'].state
var activity = states['input_select.kallen_activities'].state
var controlLights = states['input_boolean.kallen_timer_control_lights'].state
var duration = states['input_number.kallen_activity_duration'].state
var fixDuration = parseFloat(duration)
const states = global.get('homeassistant.homeAssistant.states')
const room = states['input_select.kallen_activity_room'].state
const activity = states['input_select.kallen_activities'].state
const controlLights = states['input_boolean.kallen_timer_control_lights'].state
const duration = states['input_number.kallen_activity_duration'].state
const fixDuration = parseFloat(duration)
msg.room = room
msg.activity = activity