Skip to content

Commit

Permalink
Remove duplicate PRESSURE sensor descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
jason0x43 committed Apr 14, 2023
1 parent 1033ea7 commit 4fdce97
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions custom_components/hubitat/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,43 +656,42 @@ def __init__(self, *args: Any, **kwargs: Any):


_SENSOR_ATTRS: Tuple[Tuple[str, Type[HubitatSensor]], ...] = (
(DeviceAttribute.AIR_QUALITY_INDEX, HubitatAirQualityIndexSensor),
(DeviceAttribute.AMPERAGE, HubitatCurrentSensor),
(DeviceAttribute.AQI, HubitatAqiSensor),
(DeviceAttribute.BATTERY, HubitatBatterySensor),
(DeviceAttribute.ENERGY, HubitatEnergySensor),
(DeviceAttribute.ENERGY_SOURCE, HubitatEnergySourceSensor),
(DeviceAttribute.HUMIDITY, HubitatHumiditySensor),
(DeviceAttribute.ILLUMINANCE, HubitatIlluminanceSensor),
(DeviceAttribute.POWER, HubitatPowerSensor),
(DeviceAttribute.POWER_SOURCE, HubitatPowerSourceSensor),
(DeviceAttribute.PRESSURE, HubitatPressureSensor),
(DeviceAttribute.TEMPERATURE, HubitatTemperatureSensor),
(DeviceAttribute.VOLTAGE, HubitatVoltageSensor),
(DeviceAttribute.DEW_POINT, HubitatDewPointSensor),
(DeviceAttribute.CARBON_DIOXIDE, HubitatCarbonDioxide),
(DeviceAttribute.CARBON_DIOXIDE_LEVEL, HubitatCarbonDioxideLevel),
(DeviceAttribute.CARBON_MONOXIDE, HubitatCarbonMonoxide),
(DeviceAttribute.CARBON_MONOXIDE_LEVEL, HubitatCarbonMonoxideLevel),
(DeviceAttribute.VOC, HubitatVOC),
(DeviceAttribute.VOC_LEVEL, HubitatVOCLevel),
(DeviceAttribute.AMPERAGE, HubitatCurrentSensor),
(DeviceAttribute.DAY_EURO, HubitatWaterDayPriceSensor),
(DeviceAttribute.DAY_LITER, HubitatWaterDayLiterSensor),
(DeviceAttribute.CUMULATIVE_LITER, HubitatWaterCumulativeLiterSensor),
(DeviceAttribute.CUMULATIVE_CUBIC_METER, HubitatWaterCumulativeM3Sensor),
(DeviceAttribute.CUMULATIVE_LITER, HubitatWaterCumulativeLiterSensor),
(DeviceAttribute.DAY_CUBIC_METER, HubitatWaterDayM3Sensor),
(DeviceAttribute.UV, HubitatUVIndexSensor),
(DeviceAttribute.PRESSURE, HubitatPressureSensor),
(DeviceAttribute.AQI, HubitatAqiSensor),
(DeviceAttribute.AIR_QUALITY_INDEX, HubitatAirQualityIndexSensor),
(DeviceAttribute.DAY_EURO, HubitatWaterDayPriceSensor),
(DeviceAttribute.DAY_LITER, HubitatWaterDayLiterSensor),
(DeviceAttribute.DEW_POINT, HubitatDewPointSensor),
(DeviceAttribute.ENERGY, HubitatEnergySensor),
(DeviceAttribute.ENERGY_SOURCE, HubitatEnergySourceSensor),
(DeviceAttribute.HOME_HEALTH, HubitatHomeHealth),
(DeviceAttribute.HUMIDITY, HubitatHumiditySensor),
(DeviceAttribute.ILLUMINANCE, HubitatIlluminanceSensor),
(DeviceAttribute.PM1, HubitatPm1Sensor),
(DeviceAttribute.PM10, HubitatPm10Sensor),
(DeviceAttribute.PM25, HubitatPm25Sensor),
(DeviceAttribute.RAIN_RATE, HubitatRainRateSensor),
(DeviceAttribute.POWER, HubitatPowerSensor),
(DeviceAttribute.POWER_SOURCE, HubitatPowerSourceSensor),
(DeviceAttribute.PRESSURE, HubitatPressureSensor),
(DeviceAttribute.RAIN_DAILY, HubitatRainDailySensor),
(DeviceAttribute.RAIN_RATE, HubitatRainRateSensor),
(DeviceAttribute.RATE, HubitatRateSensor),
(DeviceAttribute.TEMPERATURE, HubitatTemperatureSensor),
(DeviceAttribute.UV, HubitatUVIndexSensor),
(DeviceAttribute.VOC, HubitatVOC),
(DeviceAttribute.VOC_LEVEL, HubitatVOCLevel),
(DeviceAttribute.VOLTAGE, HubitatVoltageSensor),
(DeviceAttribute.WIND_DIRECTION, HubitatWindDirectionSensor),
(DeviceAttribute.WIND_SPEED, HubitatWindSpeedSensor),
(DeviceAttribute.WIND_GUST, HubitatWindGustSensor),
(DeviceAttribute.RATE, HubitatRateSensor),
(DeviceAttribute.WIND_SPEED, HubitatWindSpeedSensor),
)


Expand Down

0 comments on commit 4fdce97

Please sign in to comment.