File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -228,21 +228,21 @@ def _handle_light_color(self, message):
228228 voc_match = entity
229229
230230 if self .voc_match (voc_match , "all_lights" ):
231- data_obj = {'entity_id' : 'all' }
231+ action_data = {'entity_id' : 'all' }
232232 ha_entity = {'dev_name' : 'all lights' }
233233 else :
234234 ha_entity = self ._find_entity (entity , ['group' , 'light' ])
235235
236236 if not ha_entity or not self ._check_availability (ha_entity ):
237237 return
238238
239- data_obj = {'entity_id' : ha_entity ['id' ]}
239+ action_data = {'entity_id' : ha_entity ['id' ]}
240240
241- data_obj ['color_name' ] = message .data ['color' ]
242- self .ha .execute_service ("light" , "turn_on" , data_obj )
241+ action_data ['color_name' ] = message .data ['color' ]
242+ self .ha .execute_service ("light" , "turn_on" , action_data )
243243
244- data_obj ['dev_name' ] = ha_entity ['dev_name' ]
245- self .speak_dialog ('homeassistant.color.change' , data = data_obj )
244+ action_data ['dev_name' ] = ha_entity ['dev_name' ]
245+ self .speak_dialog ('homeassistant.color.change' , data = action_data )
246246
247247 @intent_handler ('automation.intent' )
248248 def handle_automation_intent (self , message ):
You can’t perform that action at this time.
0 commit comments