Skip to content

Commit

Permalink
Ignore wled color entities
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaradclimber committed Oct 20, 2024
1 parent 97bf1cf commit b10aadf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/datadog_agentless/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ def _extract_state(new_state: State, entity_id: str, value: Any, main_state: boo
if entity_id in ['hs_color', 'rgb_color', 'xy_color']:
# ignore multivalue colors
return
if re.match("^light.wled_.+color", entity_id ):
# ignore multivalue colors
return
_LOGGER.warn(f"Hard to convert value {value} which is a tuple to a single value (entity: {entity_id})")
return
# let's ignore "known" string values
Expand Down

0 comments on commit b10aadf

Please sign in to comment.