Skip to content

Commit

Permalink
Revert "ruff remove else"
Browse files Browse the repository at this point in the history
This reverts commit 46dd9c1.
  • Loading branch information
jontofront committed Oct 14, 2024
1 parent 46dd9c1 commit 3c2fae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 39 deletions.
9 changes: 5 additions & 4 deletions custom_components/econet300/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ def create_controller_sensors(coordinator: EconetDataCoordinator, api: Econet300
data_key,
)
continue
_LOGGER.warning(
"Key: %s is not mapped, sensor entity will not be added",
data_key,
)
else:
_LOGGER.warning(
"Key: %s is not mapped, sensor entity will not be added",
data_key,
)

return entities

Expand Down
35 changes: 0 additions & 35 deletions custom_components/econet300/switch.py

This file was deleted.

0 comments on commit 3c2fae3

Please sign in to comment.