From 88d72f8c9a8694213b8206bd1fed316c3f481709 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 9 Feb 2022 08:04:44 +1300 Subject: [PATCH] Fix files CI after merging (#3175) --- esphome/components/max9611/max9611.cpp | 2 +- esphome/components/modbus_controller/select/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/max9611/max9611.cpp b/esphome/components/max9611/max9611.cpp index 418a577948..70a94c4ad9 100644 --- a/esphome/components/max9611/max9611.cpp +++ b/esphome/components/max9611/max9611.cpp @@ -13,7 +13,7 @@ template inline T signextend(const T x) { return s.x = x; } // 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; if (gain == MAX9611_MULTIPLEXER_CSA_GAIN1) { lsb = 107.50; diff --git a/esphome/components/modbus_controller/select/__init__.py b/esphome/components/modbus_controller/select/__init__.py index 9651b5fedb..7d03064fa5 100644 --- a/esphome/components/modbus_controller/select/__init__.py +++ b/esphome/components/modbus_controller/select/__init__.py @@ -35,7 +35,7 @@ def ensure_option_map(): def validator(value): cv.check_not_templatable(value) 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}) value = options_map_schema(value)