From ee4bf34083031903db2fdd66b647c0458df3d006 Mon Sep 17 00:00:00 2001 From: ElVit Date: Fri, 28 Nov 2025 08:33:33 +0100 Subject: [PATCH] fix formatting in python files --- components/panasonic_heatpump/binary_sensor/__init__.py | 1 + components/panasonic_heatpump/climate/__init__.py | 2 ++ components/panasonic_heatpump/number/__init__.py | 3 +++ components/panasonic_heatpump/select/__init__.py | 1 + components/panasonic_heatpump/sensor/__init__.py | 1 + components/panasonic_heatpump/switch/__init__.py | 1 + components/panasonic_heatpump/text_sensor/__init__.py | 1 + 7 files changed, 10 insertions(+) diff --git a/components/panasonic_heatpump/binary_sensor/__init__.py b/components/panasonic_heatpump/binary_sensor/__init__.py index 67b4cc8..3483759 100644 --- a/components/panasonic_heatpump/binary_sensor/__init__.py +++ b/components/panasonic_heatpump/binary_sensor/__init__.py @@ -151,6 +151,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA) + async def to_code(config): parent = await cg.get_variable(config[CONF_PANASONIC_HEATPUMP_ID]) for index, key in enumerate(TYPES): diff --git a/components/panasonic_heatpump/climate/__init__.py b/components/panasonic_heatpump/climate/__init__.py index 9ac4534..06093d9 100644 --- a/components/panasonic_heatpump/climate/__init__.py +++ b/components/panasonic_heatpump/climate/__init__.py @@ -27,6 +27,7 @@ TYPES = [ CONF_CLIMATE_ZONE2, ] + def climate_options(min_temp, max_temp, temp_step) -> cv.Schema: schema = cv.Schema( { @@ -60,6 +61,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA) + async def to_code(config): parent = await cg.get_variable(config[CONF_PANASONIC_HEATPUMP_ID]) for index, key in enumerate(TYPES): diff --git a/components/panasonic_heatpump/number/__init__.py b/components/panasonic_heatpump/number/__init__.py index 774d485..bd99098 100644 --- a/components/panasonic_heatpump/number/__init__.py +++ b/components/panasonic_heatpump/number/__init__.py @@ -86,6 +86,7 @@ TYPES = [ CONF_SET38, ] + def number_options(min_val, max_val, step) -> cv.Schema: schema = cv.Schema( { @@ -96,6 +97,7 @@ def number_options(min_val, max_val, step) -> cv.Schema: ) return schema + PanasonicHeatpumpNumber = panasonic_heatpump_ns.class_( "PanasonicHeatpumpNumber", number.Number, cg.Component ) @@ -255,6 +257,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA) + async def to_code(config): parent = await cg.get_variable(config[CONF_PANASONIC_HEATPUMP_ID]) for index, key in enumerate(TYPES): diff --git a/components/panasonic_heatpump/select/__init__.py b/components/panasonic_heatpump/select/__init__.py index 386fd49..f43fe16 100644 --- a/components/panasonic_heatpump/select/__init__.py +++ b/components/panasonic_heatpump/select/__init__.py @@ -106,6 +106,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA) + async def to_code(config): parent = await cg.get_variable(config[CONF_PANASONIC_HEATPUMP_ID]) for index, key in enumerate(TYPES): diff --git a/components/panasonic_heatpump/sensor/__init__.py b/components/panasonic_heatpump/sensor/__init__.py index 0c17033..6012670 100644 --- a/components/panasonic_heatpump/sensor/__init__.py +++ b/components/panasonic_heatpump/sensor/__init__.py @@ -955,6 +955,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA) + async def to_code(config): parent = await cg.get_variable(config[CONF_PANASONIC_HEATPUMP_ID]) for index, key in enumerate(TYPES): diff --git a/components/panasonic_heatpump/switch/__init__.py b/components/panasonic_heatpump/switch/__init__.py index ba04612..7b5f4c9 100644 --- a/components/panasonic_heatpump/switch/__init__.py +++ b/components/panasonic_heatpump/switch/__init__.py @@ -91,6 +91,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA) + async def to_code(config): parent = await cg.get_variable(config[CONF_PANASONIC_HEATPUMP_ID]) for index, key in enumerate(TYPES): diff --git a/components/panasonic_heatpump/text_sensor/__init__.py b/components/panasonic_heatpump/text_sensor/__init__.py index bff2027..38fed84 100644 --- a/components/panasonic_heatpump/text_sensor/__init__.py +++ b/components/panasonic_heatpump/text_sensor/__init__.py @@ -166,6 +166,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA) + async def to_code(config): parent = await cg.get_variable(config[CONF_PANASONIC_HEATPUMP_ID]) for index, key in enumerate(TYPES):