Skip to content

Commit

Permalink
Removed Under test attribute, redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
faanskit committed Jan 23, 2024
1 parent ef0b681 commit 0a57c6e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions custom_components/checkwatt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class CheckwattResp(TypedDict):
energy_provider: str
cm10_status: str
cm10_version: str
cm10_under_test: bool
charge_peak_ac: float
charge_peak_dc: float
discharge_peak_ac: float
Expand Down Expand Up @@ -372,7 +371,6 @@ async def _async_update_data(self) -> CheckwattResp: # noqa: C901
resp["cm10_status"] = "Active"

resp["cm10_version"] = cw_inst.meter_version
resp["cm10_under_test"] = cw_inst.meter_under_test

# Check if FCR-D State has changed and dispatch it ACTIVATED/ DEACTIVATED
old_state = self.fcrd_state
Expand Down
1 change: 0 additions & 1 deletion custom_components/checkwatt/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
C_CHARGE_PEAK = "charge_peak"
C_CITY = "city"
C_CM10_VERSION = "cm10_version"
C_CM10_UNDER_TEST = "cm10_under_test"
C_DISCHARGE_PEAK = "discharge_peak"
C_DISPLAY_NAME = "display_name"
C_DSO = "dso"
Expand Down
9 changes: 0 additions & 9 deletions custom_components/checkwatt/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
C_CHARGE_PEAK_AC,
C_CHARGE_PEAK_DC,
C_CITY,
C_CM10_UNDER_TEST,
C_CM10_VERSION,
C_DISCHARGE_PEAK,
C_DISCHARGE_PEAK_AC,
Expand Down Expand Up @@ -726,10 +725,6 @@ async def async_update(self) -> None:
self._attr_extra_state_attributes.update(
{C_CM10_VERSION: self._coordinator.data["cm10_version"]}
)
if "cm10_under_test" in self._coordinator.data:
self._attr_extra_state_attributes.update(
{C_CM10_UNDER_TEST: self._coordinator.data["cm10_under_test"]}
)
if "fcr_d_status" in self._coordinator.data:
self._attr_extra_state_attributes.update(
{C_FCRD_STATUS: self._coordinator.data["fcr_d_status"]}
Expand Down Expand Up @@ -757,10 +752,6 @@ def _handle_coordinator_update(self) -> None:
self._attr_extra_state_attributes.update(
{C_CM10_VERSION: self._coordinator.data["cm10_version"]}
)
if "cm10_under_test" in self._coordinator.data:
self._attr_extra_state_attributes.update(
{C_CM10_UNDER_TEST: self._coordinator.data["cm10_under_test"]}
)
if "fcr_d_status" in self._coordinator.data:
self._attr_extra_state_attributes.update(
{C_FCRD_STATUS: self._coordinator.data["fcr_d_status"]}
Expand Down
3 changes: 0 additions & 3 deletions custom_components/checkwatt/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@
"cm10_version": {
"name": "Version"
},
"cm10_under_test": {
"name": "Under test"
},
"fcr_d_info": {
"name": "FCR-D Info"
},
Expand Down
3 changes: 0 additions & 3 deletions custom_components/checkwatt/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@
"cm10_version": {
"name": "Version"
},
"cm10_under_test": {
"name": "Under test"
},
"fcr_d_info": {
"name": "FCR-D Info"
},
Expand Down
3 changes: 0 additions & 3 deletions custom_components/checkwatt/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,6 @@
"cm10_version": {
"name": "Version"
},
"cm10_under_test": {
"name": "Test pågår"
},
"fcr_d_info": {
"name": "FCR-D Info"
},
Expand Down

0 comments on commit 0a57c6e

Please sign in to comment.