Skip to content

Commit

Permalink
fixed black errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bullitt186 committed Aug 27, 2023
1 parent 50e7c47 commit 85feb37
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions e3dc/_e3dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1760,17 +1760,19 @@ def get_powermeters(self, keepAlive=False):
{'index': 1, 'type': 4, 'typeName': 'PM_TYPE_ADDITIONAL_CONSUMPTION'}
]
"""
pmTypeNames = { # Source: https://github.com/spali/go-rscp/blob/master/rscp/tag.go#L561
0: "PM_TYPE_UNDEFINED",
1: "PM_TYPE_ROOT",
2: "PM_TYPE_ADDITIONAL",
3: "PM_TYPE_ADDITIONAL_PRODUCTION",
4: "PM_TYPE_ADDITIONAL_CONSUMPTION",
5: "PM_TYPE_FARM",
6: "PM_TYPE_UNUSED",
7: "PM_TYPE_WALLBOX",
8: "PM_TYPE_FARM_ADDITIONAL",
}
pmTypeNames = (
{ # Source: https://github.com/spali/go-rscp/blob/master/rscp/tag.go#L561
0: "PM_TYPE_UNDEFINED",
1: "PM_TYPE_ROOT",
2: "PM_TYPE_ADDITIONAL",
3: "PM_TYPE_ADDITIONAL_PRODUCTION",
4: "PM_TYPE_ADDITIONAL_CONSUMPTION",
5: "PM_TYPE_FARM",
6: "PM_TYPE_UNUSED",
7: "PM_TYPE_WALLBOX",
8: "PM_TYPE_FARM_ADDITIONAL",
}
)

outObj = []
for pmIndex in range(8): # max 8 powermeters according to E3DC spec
Expand Down

0 comments on commit 85feb37

Please sign in to comment.