Fix growatt server tlx battery api key (#123191)

This commit is contained in:
flopp999 2024-08-06 10:21:48 +02:00 committed by GitHub
parent b9251e94a9
commit bc02925630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,14 +327,14 @@ TLX_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = (
GrowattSensorEntityDescription( GrowattSensorEntityDescription(
key="tlx_battery_2_discharge_w", key="tlx_battery_2_discharge_w",
translation_key="tlx_battery_2_discharge_w", translation_key="tlx_battery_2_discharge_w",
api_key="bdc1DischargePower", api_key="bdc2DischargePower",
native_unit_of_measurement=UnitOfPower.WATT, native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER, device_class=SensorDeviceClass.POWER,
), ),
GrowattSensorEntityDescription( GrowattSensorEntityDescription(
key="tlx_battery_2_discharge_total", key="tlx_battery_2_discharge_total",
translation_key="tlx_battery_2_discharge_total", translation_key="tlx_battery_2_discharge_total",
api_key="bdc1DischargeTotal", api_key="bdc2DischargeTotal",
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY, device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.TOTAL_INCREASING,
@ -376,14 +376,14 @@ TLX_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = (
GrowattSensorEntityDescription( GrowattSensorEntityDescription(
key="tlx_battery_2_charge_w", key="tlx_battery_2_charge_w",
translation_key="tlx_battery_2_charge_w", translation_key="tlx_battery_2_charge_w",
api_key="bdc1ChargePower", api_key="bdc2ChargePower",
native_unit_of_measurement=UnitOfPower.WATT, native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER, device_class=SensorDeviceClass.POWER,
), ),
GrowattSensorEntityDescription( GrowattSensorEntityDescription(
key="tlx_battery_2_charge_total", key="tlx_battery_2_charge_total",
translation_key="tlx_battery_2_charge_total", translation_key="tlx_battery_2_charge_total",
api_key="bdc1ChargeTotal", api_key="bdc2ChargeTotal",
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY, device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.TOTAL_INCREASING,