chore: linting and formating python files

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-07 00:48:44 +02:00
1 parent dd2626a15c
commit 92d3e9b835
5 files changed
+86 -69

No files matched your search

+4 -3
View File
@@ -2,7 +2,6 @@ import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import binary_sensor
from esphome.const import (
CONF_ID,
CONF_TYPE,
DEVICE_CLASS_CONNECTIVITY,
DEVICE_CLASS_BATTERY,
@@ -14,7 +13,9 @@ from . import nut_ups_ns, NutUpsComponent, CONF_NUT_UPS_ID
DEPENDENCIES = ["nut_ups"]
NutUpsBinarySensor = nut_ups_ns.class_("NutUpsBinarySensor", binary_sensor.BinarySensor, cg.Component)
NutUpsBinarySensor = nut_ups_ns.class_(
"NutUpsBinarySensor", binary_sensor.BinarySensor, cg.Component
)
BINARY_SENSOR_TYPES = {
"online": {
@@ -61,4 +62,4 @@ async def to_code(config):
# Override config with sensor type defaults if not specified
if "device_class" not in config and "device_class" in sensor_config:
cg.add(var.set_device_class(sensor_config["device_class"]))
cg.add(var.set_device_class(sensor_config["device_class"]))