mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Fix files CI after merging (#3175)
This commit is contained in:
parent
9826726a72
commit
88d72f8c9a
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ template<typename T, unsigned B> inline T signextend(const T x) {
|
||||||
return s.x = x;
|
return s.x = x;
|
||||||
}
|
}
|
||||||
// Map the gain register to in uV/LSB
|
// Map the gain register to in uV/LSB
|
||||||
const float gain_to_lsb(MAX9611Multiplexer gain) {
|
float gain_to_lsb(MAX9611Multiplexer gain) {
|
||||||
float lsb = 0.0;
|
float lsb = 0.0;
|
||||||
if (gain == MAX9611_MULTIPLEXER_CSA_GAIN1) {
|
if (gain == MAX9611_MULTIPLEXER_CSA_GAIN1) {
|
||||||
lsb = 107.50;
|
lsb = 107.50;
|
||||||
|
|
|
@ -35,7 +35,7 @@ def ensure_option_map():
|
||||||
def validator(value):
|
def validator(value):
|
||||||
cv.check_not_templatable(value)
|
cv.check_not_templatable(value)
|
||||||
option = cv.All(cv.string_strict)
|
option = cv.All(cv.string_strict)
|
||||||
mapping = cv.All(cv.int_range(-(2 ** 63), 2 ** 63 - 1))
|
mapping = cv.All(cv.int_range(-(2**63), 2**63 - 1))
|
||||||
options_map_schema = cv.Schema({option: mapping})
|
options_map_schema = cv.Schema({option: mapping})
|
||||||
value = options_map_schema(value)
|
value = options_map_schema(value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue