Commit 4642628
authored
Remove unused imports and an unreachable statement (#103)
- coordinator/data_processor.py: drop unused 'import re'.
- api/parsers/nordpool_parser.py: drop unused 'timezone' from the datetime
import (the parser only uses the 'timezone' name as a parameter/dict key).
- sensor/price.py: remove an unreachable 'return' after a try/except whose both
branches already return (audit finding #31).
Pure cleanup; clears the two remaining pylint unused-import warnings. Full unit
suite (451) passes.1 parent 2a4966a commit 4642628
3 files changed
Lines changed: 1 addition & 3 deletions
File tree
- custom_components/ge_spot
- api/parsers
- coordinator
- sensor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
0 commit comments