Skip to content

Commit

Permalink
Fix Powermeter-autodetection #31 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
torbennehmer authored Feb 17, 2024
2 parents ba4fd96 + 41af05e commit 862e31f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/e3dc_rscp/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ async def _async_connect_additional_powermeters(self):
)

match powermeter["type"]:
case (
PowermeterType.PM_TYPE_ADDITIONAL_PRODUCTION.value,
PowermeterType.PM_TYPE_ADDITIONAL.value
case ( PowermeterType.PM_TYPE_ADDITIONAL_PRODUCTION.value
| PowermeterType.PM_TYPE_ADDITIONAL.value
):
powermeter[
"total-state-class"
Expand Down
1 change: 1 addition & 0 deletions custom_components/e3dc_rscp/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def _collect_data(self):
"current_data": self.coordinator.data,
"get_system_info": self._query_data_for_dump(self.e3dc.get_system_info),
"get_system_status": self._query_data_for_dump(self.e3dc.get_system_status),
"get_powermeters": self._query_data_for_dump(self.e3dc.get_powermeters),
"e3dc_config": self.proxy.e3dc_config,
"poll": self._query_data_for_dump(self.e3dc.poll),
"switches": self._query_data_for_dump(self.e3dc.poll_switches),
Expand Down

0 comments on commit 862e31f

Please sign in to comment.