mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Remove unnecessary defaults from Netatmo sensor (#101528)
This commit is contained in:
parent
fd2edf6c0a
commit
1c590f8d0e
@ -87,7 +87,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="temperature",
|
key="temperature",
|
||||||
name="Temperature",
|
name="Temperature",
|
||||||
netatmo_name="temperature",
|
netatmo_name="temperature",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
@ -104,7 +103,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
name="CO2",
|
name="CO2",
|
||||||
netatmo_name="co2",
|
netatmo_name="co2",
|
||||||
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
|
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.CO2,
|
device_class=SensorDeviceClass.CO2,
|
||||||
),
|
),
|
||||||
@ -112,7 +110,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="pressure",
|
key="pressure",
|
||||||
name="Pressure",
|
name="Pressure",
|
||||||
netatmo_name="pressure",
|
netatmo_name="pressure",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=UnitOfPressure.MBAR,
|
native_unit_of_measurement=UnitOfPressure.MBAR,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.ATMOSPHERIC_PRESSURE,
|
device_class=SensorDeviceClass.ATMOSPHERIC_PRESSURE,
|
||||||
@ -128,7 +125,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="noise",
|
key="noise",
|
||||||
name="Noise",
|
name="Noise",
|
||||||
netatmo_name="noise",
|
netatmo_name="noise",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=UnitOfSoundPressure.DECIBEL,
|
native_unit_of_measurement=UnitOfSoundPressure.DECIBEL,
|
||||||
device_class=SensorDeviceClass.SOUND_PRESSURE,
|
device_class=SensorDeviceClass.SOUND_PRESSURE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
@ -137,7 +133,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="humidity",
|
key="humidity",
|
||||||
name="Humidity",
|
name="Humidity",
|
||||||
netatmo_name="humidity",
|
netatmo_name="humidity",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.HUMIDITY,
|
device_class=SensorDeviceClass.HUMIDITY,
|
||||||
@ -146,7 +141,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="rain",
|
key="rain",
|
||||||
name="Rain",
|
name="Rain",
|
||||||
netatmo_name="rain",
|
netatmo_name="rain",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
device_class=SensorDeviceClass.PRECIPITATION,
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
@ -164,7 +158,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="sum_rain_24",
|
key="sum_rain_24",
|
||||||
name="Rain today",
|
name="Rain today",
|
||||||
netatmo_name="sum_rain_24",
|
netatmo_name="sum_rain_24",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
|
||||||
device_class=SensorDeviceClass.PRECIPITATION,
|
device_class=SensorDeviceClass.PRECIPITATION,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
@ -173,7 +166,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="battery_percent",
|
key="battery_percent",
|
||||||
name="Battery Percent",
|
name="Battery Percent",
|
||||||
netatmo_name="battery",
|
netatmo_name="battery",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
@ -183,7 +175,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="windangle",
|
key="windangle",
|
||||||
name="Direction",
|
name="Direction",
|
||||||
netatmo_name="wind_direction",
|
netatmo_name="wind_direction",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
icon="mdi:compass-outline",
|
icon="mdi:compass-outline",
|
||||||
),
|
),
|
||||||
NetatmoSensorEntityDescription(
|
NetatmoSensorEntityDescription(
|
||||||
@ -199,7 +190,6 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="windstrength",
|
key="windstrength",
|
||||||
name="Wind Strength",
|
name="Wind Strength",
|
||||||
netatmo_name="wind_strength",
|
netatmo_name="wind_strength",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
native_unit_of_measurement=UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
device_class=SensorDeviceClass.WIND_SPEED,
|
device_class=SensorDeviceClass.WIND_SPEED,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
@ -257,14 +247,12 @@ SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
|
|||||||
key="health_idx",
|
key="health_idx",
|
||||||
name="Health",
|
name="Health",
|
||||||
netatmo_name="health_idx",
|
netatmo_name="health_idx",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
icon="mdi:cloud",
|
icon="mdi:cloud",
|
||||||
),
|
),
|
||||||
NetatmoSensorEntityDescription(
|
NetatmoSensorEntityDescription(
|
||||||
key="power",
|
key="power",
|
||||||
name="Power",
|
name="Power",
|
||||||
netatmo_name="power",
|
netatmo_name="power",
|
||||||
entity_registry_enabled_default=True,
|
|
||||||
native_unit_of_measurement=UnitOfPower.WATT,
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user