diff --git a/insteon_mqtt/mqtt/Thermostat.py b/insteon_mqtt/mqtt/Thermostat.py index 2c36d7df..735e332b 100644 --- a/insteon_mqtt/mqtt/Thermostat.py +++ b/insteon_mqtt/mqtt/Thermostat.py @@ -115,13 +115,13 @@ def load_config(self, config, qos=None): 'hold_state_payload', qos) self.energy_state.load_config(data, 'energy_state_topic', 'energy_state_payload', qos) - self.mode_command.load_config(config, 'mode_command_topic', + self.mode_command.load_config(data, 'mode_command_topic', 'mode_command_payload', qos) - self.fan_command.load_config(config, 'fan_command_topic', + self.fan_command.load_config(data, 'fan_command_topic', 'fan_command_payload', qos) - self.heat_sp_command.load_config(config, 'heat_sp_command_topic', + self.heat_sp_command.load_config(data, 'heat_sp_command_topic', 'heat_sp_command_payload', qos) - self.cool_sp_command.load_config(config, 'cool_sp_command_topic', + self.cool_sp_command.load_config(data, 'cool_sp_command_topic', 'cool_sp_command_payload', qos) #-----------------------------------------------------------------------