Skip to content

Commit a5e70f5

Browse files
Revert "Update const.py"
This reverts commit 7850664.
1 parent 7850664 commit a5e70f5

File tree

1 file changed

+0
-10
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+0
-10
lines changed

custom_components/solaredge_modbus_multi/const.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ class ModbusExceptions:
4747
GatewayPathUnavailable = 0x0A
4848
GatewayNoResponse = 0x0B
4949

50-
@classmethod
51-
def decode(cls, code: int) -> str | None:
52-
"""Give an error code, translate it to a string error name."""
53-
values = {
54-
v: k
55-
for k, v in iter(cls.__dict__.items())
56-
if not k.startswith("__") and not callable(v)
57-
}
58-
return values.get(code, None)
59-
6050

6151
class RetrySettings(IntEnum):
6252
"""Retry settings when opening a connection to the inverter fails."""

0 commit comments

Comments
 (0)