mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
Added CONF_SAMPLE_RATE to const.py
This commit is contained in:
parent
53f3119092
commit
cd8672ab0c
4 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.components import i2c, esp32
|
from esphome.components import i2c, esp32
|
||||||
from esphome.const import CONF_ID, CONF_TEMPERATURE_OFFSET
|
from esphome.const import CONF_ID, CONF_TEMPERATURE_OFFSET, CONF_SAMPLE_RATE
|
||||||
|
|
||||||
CODEOWNERS = ["@trvrnrth"]
|
CODEOWNERS = ["@trvrnrth"]
|
||||||
DEPENDENCIES = ["i2c"]
|
DEPENDENCIES = ["i2c"]
|
||||||
|
@ -11,7 +11,6 @@ MULTI_CONF = True
|
||||||
CONF_BME680_BSEC_ID = "bme680_bsec_id"
|
CONF_BME680_BSEC_ID = "bme680_bsec_id"
|
||||||
CONF_IAQ_MODE = "iaq_mode"
|
CONF_IAQ_MODE = "iaq_mode"
|
||||||
CONF_SUPPLY_VOLTAGE = "supply_voltage"
|
CONF_SUPPLY_VOLTAGE = "supply_voltage"
|
||||||
CONF_SAMPLE_RATE = "sample_rate"
|
|
||||||
CONF_STATE_SAVE_INTERVAL = "state_save_interval"
|
CONF_STATE_SAVE_INTERVAL = "state_save_interval"
|
||||||
|
|
||||||
bme680_bsec_ns = cg.esphome_ns.namespace("bme680_bsec")
|
bme680_bsec_ns = cg.esphome_ns.namespace("bme680_bsec")
|
||||||
|
|
|
@ -2,7 +2,7 @@ import esphome.config_validation as cv
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
|
|
||||||
from esphome import pins
|
from esphome import pins
|
||||||
from esphome.const import CONF_CHANNEL, CONF_ID, CONF_NUMBER
|
from esphome.const import CONF_CHANNEL, CONF_ID, CONF_NUMBER, CONF_SAMPLE_RATE
|
||||||
from esphome.components import microphone, esp32
|
from esphome.components import microphone, esp32
|
||||||
from esphome.components.adc import ESP32_VARIANT_ADC1_PIN_TO_CHANNEL, validate_adc_pin
|
from esphome.components.adc import ESP32_VARIANT_ADC1_PIN_TO_CHANNEL, validate_adc_pin
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ DEPENDENCIES = ["i2s_audio"]
|
||||||
CONF_ADC_PIN = "adc_pin"
|
CONF_ADC_PIN = "adc_pin"
|
||||||
CONF_ADC_TYPE = "adc_type"
|
CONF_ADC_TYPE = "adc_type"
|
||||||
CONF_PDM = "pdm"
|
CONF_PDM = "pdm"
|
||||||
CONF_SAMPLE_RATE = "sample_rate"
|
|
||||||
CONF_BITS_PER_SAMPLE = "bits_per_sample"
|
CONF_BITS_PER_SAMPLE = "bits_per_sample"
|
||||||
CONF_USE_APLL = "use_apll"
|
CONF_USE_APLL = "use_apll"
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
from esphome.components import select
|
from esphome.components import select
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.const import ENTITY_CATEGORY_CONFIG
|
from esphome.const import ENTITY_CATEGORY_CONFIG, CONF_SAMPLE_RATE
|
||||||
from .. import CONF_LD2415H_ID, LD2415HComponent, ld2415h_ns
|
from .. import CONF_LD2415H_ID, LD2415HComponent, ld2415h_ns
|
||||||
|
|
||||||
CONF_SAMPLE_RATE = "sample_rate"
|
|
||||||
CONF_SAMPLE_RATE_SELECTS = [
|
CONF_SAMPLE_RATE_SELECTS = [
|
||||||
"~22 fps",
|
"~22 fps",
|
||||||
"~11 fps",
|
"~11 fps",
|
||||||
|
|
|
@ -718,6 +718,7 @@ CONF_RX_BUFFER_SIZE = "rx_buffer_size"
|
||||||
CONF_RX_ONLY = "rx_only"
|
CONF_RX_ONLY = "rx_only"
|
||||||
CONF_RX_PIN = "rx_pin"
|
CONF_RX_PIN = "rx_pin"
|
||||||
CONF_SAFE_MODE = "safe_mode"
|
CONF_SAFE_MODE = "safe_mode"
|
||||||
|
CONF_SAMPLE_RATE = "sample_rate"
|
||||||
CONF_SAMSUNG = "samsung"
|
CONF_SAMSUNG = "samsung"
|
||||||
CONF_SATELLITES = "satellites"
|
CONF_SATELLITES = "satellites"
|
||||||
CONF_SCAN = "scan"
|
CONF_SCAN = "scan"
|
||||||
|
|
Loading…
Reference in a new issue