Skip to content

Commit

Permalink
Change debugging info for brightness call
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbadblunt committed Jan 30, 2022
1 parent a5666c5 commit f871133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/lightwave2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async def async_setup(hass, config):

async def service_handle_brightness(call):
entity_ids = call.data.get("entity_id")
_LOGGER.debug("Received service call set brightness %s", entity_ids)
for entry_id in hass.data[DOMAIN]:

entities = hass.data[DOMAIN][entry_id][LIGHTWAVE_ENTITIES]
Expand All @@ -32,7 +33,6 @@ async def service_handle_brightness(call):

for ent in entities:
feature_id = link.featuresets[ent._featureset_id].features['dimLevel'].id
_LOGGER.debug("Received service call set brightness")
_LOGGER.debug("Setting feature ID: %s ", feature_id)
await link.async_write_feature(feature_id, brightness)
await ent.async_update()
Expand Down

0 comments on commit f871133

Please sign in to comment.