Skip to content

Commit

Permalink
HM3301 - Change type to calculation_type (esphome#769)
Browse files Browse the repository at this point in the history
According to the esphome dashboard, AQI type should be calculation_type
  • Loading branch information
rdehuyss authored and stubs12 committed Dec 3, 2020
1 parent 8eda54e commit 2b333e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/sensor/hm3301.rst
Expand Up @@ -26,7 +26,7 @@ The sensor communicate with board by :ref:`I²C <i2c>` protocol, and requires 3.
name: "PM10.0"
aqi:
name: "AQI"
type: "CAQI"
calculation_type: "CAQI"
Configuration variables:
------------------------
Expand All @@ -51,7 +51,7 @@ Configuration variables:

- **aqi** (*Optional*): AQI sensor. Requires the ``pm_2_5`` and ``pm_10_0`` sensors defined. See below.

- **type** (**Required**): One of: ``AQI`` or ``CAQI``.
- **calculation_type** (**Required**): One of: ``AQI`` or ``CAQI``.
- **name** (**Required**, string): The name for the temperature sensor.
- **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
- All other options from :ref:`Sensor <config-sensor>`.
Expand All @@ -75,7 +75,7 @@ There are two implementations:
name: "PM10.0"
aqi:
name: "AQI"
type: "CAQI"
calculation_type: "CAQI"
See Also
Expand Down

0 comments on commit 2b333e0

Please sign in to comment.