Skip to content

Commit

Permalink
Remove unnecessary defaults from Netatmo sensor (#101528)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdrob committed Oct 6, 2023
1 parent fd2edf6 commit 1c590f8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions homeassistant/components/netatmo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="temperature",
name="Temperature",
netatmo_name="temperature",
entity_registry_enabled_default=True,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
Expand All @@ -104,15 +103,13 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
name="CO2",
netatmo_name="co2",
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
entity_registry_enabled_default=True,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.CO2,
),
NetatmoSensorEntityDescription(
key="pressure",
name="Pressure",
netatmo_name="pressure",
entity_registry_enabled_default=True,
native_unit_of_measurement=UnitOfPressure.MBAR,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.ATMOSPHERIC_PRESSURE,
Expand All @@ -128,7 +125,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="noise",
name="Noise",
netatmo_name="noise",
entity_registry_enabled_default=True,
native_unit_of_measurement=UnitOfSoundPressure.DECIBEL,
device_class=SensorDeviceClass.SOUND_PRESSURE,
state_class=SensorStateClass.MEASUREMENT,
Expand All @@ -137,7 +133,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="humidity",
name="Humidity",
netatmo_name="humidity",
entity_registry_enabled_default=True,
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.HUMIDITY,
Expand All @@ -146,7 +141,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="rain",
name="Rain",
netatmo_name="rain",
entity_registry_enabled_default=True,
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
device_class=SensorDeviceClass.PRECIPITATION,
state_class=SensorStateClass.MEASUREMENT,
Expand All @@ -164,7 +158,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="sum_rain_24",
name="Rain today",
netatmo_name="sum_rain_24",
entity_registry_enabled_default=True,
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
device_class=SensorDeviceClass.PRECIPITATION,
state_class=SensorStateClass.TOTAL_INCREASING,
Expand All @@ -173,7 +166,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="battery_percent",
name="Battery Percent",
netatmo_name="battery",
entity_registry_enabled_default=True,
entity_category=EntityCategory.DIAGNOSTIC,
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
Expand All @@ -183,7 +175,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="windangle",
name="Direction",
netatmo_name="wind_direction",
entity_registry_enabled_default=True,
icon="mdi:compass-outline",
),
NetatmoSensorEntityDescription(
Expand All @@ -199,7 +190,6 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="windstrength",
name="Wind Strength",
netatmo_name="wind_strength",
entity_registry_enabled_default=True,
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
device_class=SensorDeviceClass.WIND_SPEED,
state_class=SensorStateClass.MEASUREMENT,
Expand Down Expand Up @@ -257,14 +247,12 @@ class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKey
key="health_idx",
name="Health",
netatmo_name="health_idx",
entity_registry_enabled_default=True,
icon="mdi:cloud",
),
NetatmoSensorEntityDescription(
key="power",
name="Power",
netatmo_name="power",
entity_registry_enabled_default=True,
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.POWER,
Expand Down

0 comments on commit 1c590f8

Please sign in to comment.