Skip to content

Commit

Permalink
Fixed upstream bug
Browse files Browse the repository at this point in the history
  • Loading branch information
optiluca committed Jul 22, 2022
1 parent 642c661 commit c394a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/comelit/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def update_light(self, id, description, data):

light = ComelitLight(id, description, state, brightness, CommandHub(self))
if id not in self.lights: # Add the new sensor
if hasattr(self, 'sensor_add_entities'):
if hasattr(self, 'light_add_entities'):
self.light_add_entities([light])
self.lights[id] = light
_LOGGER.info("added the light %s %s", description, light.entity_name)
Expand Down

0 comments on commit c394a13

Please sign in to comment.