Public Access
chore: linting and formating python files
Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
5 files changed
+86
-69
No files matched your search
@@ -9,7 +9,9 @@ from . import nut_ups_ns, NutUpsComponent, CONF_NUT_UPS_ID
|
||||
|
||||
DEPENDENCIES = ["nut_ups"]
|
||||
|
||||
NutUpsTextSensor = nut_ups_ns.class_("NutUpsTextSensor", text_sensor.TextSensor, cg.Component)
|
||||
NutUpsTextSensor = nut_ups_ns.class_(
|
||||
"NutUpsTextSensor", text_sensor.TextSensor, cg.Component
|
||||
)
|
||||
|
||||
TEXT_SENSOR_TYPES = [
|
||||
"model",
|
||||
@@ -36,4 +38,4 @@ async def to_code(config):
|
||||
|
||||
sensor_type = config[CONF_TYPE]
|
||||
cg.add(var.set_sensor_type(sensor_type))
|
||||
cg.add(parent.register_text_sensor(var, sensor_type))
|
||||
cg.add(parent.register_text_sensor(var, sensor_type))
|
||||
Reference in new issue
Block a user