Skip to content

Commit

Permalink
BatteryTemplateEntityDescriptions don't need a entity_registry_enable…
Browse files Browse the repository at this point in the history
…d_default.


Fixes #832
  • Loading branch information
wlcrs authored Oct 22, 2024
1 parent 8e77b6c commit 28fd020
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,6 @@ class BatteryTemplateEntityDescription:
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
entity_registry_enabled_default=False,
),
BatteryTemplateEntityDescription(
battery_1_key=rn.STORAGE_UNIT_1_BATTERY_PACK_1_MINIMUM_TEMPERATURE,
Expand All @@ -800,7 +799,6 @@ class BatteryTemplateEntityDescription:
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
entity_registry_enabled_default=False,
),
BatteryTemplateEntityDescription(
battery_1_key=rn.STORAGE_UNIT_1_BATTERY_PACK_2_MAXIMUM_TEMPERATURE,
Expand All @@ -809,7 +807,6 @@ class BatteryTemplateEntityDescription:
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
entity_registry_enabled_default=False,
),
BatteryTemplateEntityDescription(
battery_1_key=rn.STORAGE_UNIT_1_BATTERY_PACK_2_MINIMUM_TEMPERATURE,
Expand All @@ -818,7 +815,6 @@ class BatteryTemplateEntityDescription:
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
entity_registry_enabled_default=False,
),
BatteryTemplateEntityDescription(
battery_1_key=rn.STORAGE_UNIT_1_BATTERY_PACK_3_MAXIMUM_TEMPERATURE,
Expand All @@ -827,7 +823,6 @@ class BatteryTemplateEntityDescription:
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
entity_registry_enabled_default=False,
),
BatteryTemplateEntityDescription(
battery_1_key=rn.STORAGE_UNIT_1_BATTERY_PACK_3_MINIMUM_TEMPERATURE,
Expand All @@ -836,21 +831,18 @@ class BatteryTemplateEntityDescription:
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
entity_registry_enabled_default=False,
),
BatteryTemplateEntityDescription(
battery_1_key=rn.STORAGE_UNIT_1_BATTERY_PACK_1_WORKING_STATUS,
battery_2_key=rn.STORAGE_UNIT_2_BATTERY_PACK_1_WORKING_STATUS,
translation_key="pack_1_working_status",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
BatteryTemplateEntityDescription(
battery_1_key=rn.STORAGE_UNIT_1_BATTERY_PACK_1_FIRMWARE_VERSION,
battery_2_key=rn.STORAGE_UNIT_2_BATTERY_PACK_1_FIRMWARE_VERSION,
translation_key="pack_1_firmware_version",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
)

Expand Down

0 comments on commit 28fd020

Please sign in to comment.