Skip to content

Commit 715bc81

Browse files
committed
rename data var
1 parent a86d5c6 commit 715bc81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)