Skip to content

Commit

Permalink
no warn on deprecated sensors in groups
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerza committed Jul 4, 2024
1 parent 3abde0a commit b86cdf1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ha_addon_sunsynk_multi/sensor_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,12 @@ def get_sensors(

# Warn on deprecated
if name in DEFS.deprecated:
_LOGGER.error(
"Your config includes deprecated sensors. Replace %s with %s",
name,
DEFS.deprecated[name],
)
if warn:
_LOGGER.error(
"Your config includes deprecated sensors. Replace %s with %s",
name,
DEFS.deprecated[name],
)
continue

if name in [t.name for t in target] and warn:
Expand Down

0 comments on commit b86cdf1

Please sign in to comment.