Skip to content

Commit

Permalink
Remove unavailable battery_cycle_capacity sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Sep 12, 2024
1 parent d0b0a9c commit e4d9c5f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 26 deletions.
10 changes: 0 additions & 10 deletions components/jbd_bms/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
CONF_NOMINAL_CAPACITY = "nominal_capacity"
CONF_CHARGING_CYCLES = "charging_cycles"
CONF_CAPACITY_REMAINING = "capacity_remaining"
CONF_BATTERY_CYCLE_CAPACITY = "battery_cycle_capacity"
CONF_TOTAL_VOLTAGE = "total_voltage"
CONF_CHARGING_POWER = "charging_power"
CONF_DISCHARGING_POWER = "discharging_power"
Expand Down Expand Up @@ -92,7 +91,6 @@
ICON_CAPACITY_REMAINING = "mdi:battery-50"
ICON_NOMINAL_CAPACITY = "mdi:battery-50"
ICON_CHARGING_CYCLES = "mdi:battery-sync"
ICON_BATTERY_CYCLE_CAPACITY = "mdi:battery-50"
ICON_MIN_CELL_VOLTAGE = "mdi:battery-minus-outline"
ICON_MAX_CELL_VOLTAGE = "mdi:battery-plus-outline"
ICON_MIN_VOLTAGE_CELL = "mdi:battery-minus-outline"
Expand Down Expand Up @@ -160,7 +158,6 @@
CONF_NOMINAL_CAPACITY,
CONF_CHARGING_CYCLES,
CONF_CAPACITY_REMAINING,
CONF_BATTERY_CYCLE_CAPACITY,
CONF_MIN_CELL_VOLTAGE,
CONF_MAX_CELL_VOLTAGE,
CONF_MIN_VOLTAGE_CELL,
Expand Down Expand Up @@ -219,13 +216,6 @@
device_class=DEVICE_CLASS_EMPTY,
state_class=STATE_CLASS_MEASUREMENT,
),
cv.Optional(CONF_BATTERY_CYCLE_CAPACITY): sensor.sensor_schema(
unit_of_measurement=UNIT_AMPERE_HOURS,
icon=ICON_BATTERY_CYCLE_CAPACITY,
accuracy_decimals=2,
device_class=DEVICE_CLASS_EMPTY,
state_class=STATE_CLASS_MEASUREMENT,
),
cv.Optional(CONF_TOTAL_VOLTAGE): sensor.sensor_schema(
unit_of_measurement=UNIT_VOLT,
icon=ICON_EMPTY,
Expand Down
10 changes: 0 additions & 10 deletions components/jbd_bms_ble/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
CONF_NOMINAL_CAPACITY = "nominal_capacity"
CONF_CHARGING_CYCLES = "charging_cycles"
CONF_CAPACITY_REMAINING = "capacity_remaining"
CONF_BATTERY_CYCLE_CAPACITY = "battery_cycle_capacity"
CONF_TOTAL_VOLTAGE = "total_voltage"
CONF_CHARGING_POWER = "charging_power"
CONF_DISCHARGING_POWER = "discharging_power"
Expand Down Expand Up @@ -92,7 +91,6 @@
ICON_CAPACITY_REMAINING = "mdi:battery-50"
ICON_NOMINAL_CAPACITY = "mdi:battery-50"
ICON_CHARGING_CYCLES = "mdi:battery-sync"
ICON_BATTERY_CYCLE_CAPACITY = "mdi:battery-50"
ICON_MIN_CELL_VOLTAGE = "mdi:battery-minus-outline"
ICON_MAX_CELL_VOLTAGE = "mdi:battery-plus-outline"
ICON_MIN_VOLTAGE_CELL = "mdi:battery-minus-outline"
Expand Down Expand Up @@ -160,7 +158,6 @@
CONF_NOMINAL_CAPACITY,
CONF_CHARGING_CYCLES,
CONF_CAPACITY_REMAINING,
CONF_BATTERY_CYCLE_CAPACITY,
CONF_MIN_CELL_VOLTAGE,
CONF_MAX_CELL_VOLTAGE,
CONF_MIN_VOLTAGE_CELL,
Expand Down Expand Up @@ -219,13 +216,6 @@
device_class=DEVICE_CLASS_EMPTY,
state_class=STATE_CLASS_MEASUREMENT,
),
cv.Optional(CONF_BATTERY_CYCLE_CAPACITY): sensor.sensor_schema(
unit_of_measurement=UNIT_AMPERE_HOURS,
icon=ICON_BATTERY_CYCLE_CAPACITY,
accuracy_decimals=2,
device_class=DEVICE_CLASS_EMPTY,
state_class=STATE_CLASS_MEASUREMENT,
),
cv.Optional(CONF_TOTAL_VOLTAGE): sensor.sensor_schema(
unit_of_measurement=UNIT_VOLT,
icon=ICON_EMPTY,
Expand Down
2 changes: 0 additions & 2 deletions esp32-ble-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ sensor:
name: "${name} charging cycles"
capacity_remaining:
name: "${name} capacity remaining"
battery_cycle_capacity:
name: "${name} battery cycle capacity"
total_voltage:
name: "${name} total voltage"
average_cell_voltage:
Expand Down
2 changes: 0 additions & 2 deletions esp32-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ sensor:
name: "${name} charging cycles"
capacity_remaining:
name: "${name} capacity remaining"
battery_cycle_capacity:
name: "${name} battery cycle capacity"
total_voltage:
name: "${name} total voltage"
average_cell_voltage:
Expand Down
2 changes: 0 additions & 2 deletions esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ sensor:
name: "${name} charging cycles"
capacity_remaining:
name: "${name} capacity remaining"
battery_cycle_capacity:
name: "${name} battery cycle capacity"
total_voltage:
name: "${name} total voltage"
average_cell_voltage:
Expand Down

0 comments on commit e4d9c5f

Please sign in to comment.