fix some more ruff issues #30
Annotations
10 errors
|
Ruff (F601):
growattServer/open_api_v1.py#L336
growattServer/open_api_v1.py:336:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (F601):
growattServer/open_api_v1.py#L334
growattServer/open_api_v1.py:334:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (F601):
growattServer/open_api_v1.py#L332
growattServer/open_api_v1.py:332:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (F601):
growattServer/open_api_v1.py#L321
growattServer/open_api_v1.py:321:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (F601):
growattServer/open_api_v1.py#L319
growattServer/open_api_v1.py:319:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (F601):
growattServer/open_api_v1.py#L310
growattServer/open_api_v1.py:310:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (F601):
growattServer/open_api_v1.py#L308
growattServer/open_api_v1.py:308:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (F601):
growattServer/open_api_v1.py#L297
growattServer/open_api_v1.py:297:17: F601 Dictionary key literal `"param1"` repeated
|
|
Ruff (PLR1714):
growattServer/open_api_v1.py#L42
growattServer/open_api_v1.py:42:14: PLR1714 Consider merging multiple comparisons: `device_type in (cls.MIN_TLX, cls.MIN_TLX.value)`. Use a `set` if the elements are hashable.
|
|
Ruff (PLR1714):
growattServer/open_api_v1.py#L40
growattServer/open_api_v1.py:40:12: PLR1714 Consider merging multiple comparisons: `device_type in (cls.SPH_MIX, cls.SPH_MIX.value)`. Use a `set` if the elements are hashable.
|