HM3301 - Change type to calculation_type (#769)

According to the esphome dashboard, AQI type should be calculation_type
This commit is contained in:
Ronald Dehuysser 2020-09-27 20:15:47 +02:00 committed by GitHub
parent 0d8df9652a
commit 5ca367dbb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ The sensor communicate with board by ``I2C`` protocol, and requires 3.3v.
name: "PM10.0"
aqi:
name: "AQI"
type: "CAQI"
calculation_type: "CAQI"
Configuration variables:
------------------------
@ -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>`.
@ -75,7 +75,7 @@ There are two implementations:
name: "PM10.0"
aqi:
name: "AQI"
type: "CAQI"
calculation_type: "CAQI"
See Also