mirror of
https://github.com/esphome/esphome.git
synced 2025-09-13 00:32:20 +01:00
Fix some lint errors in pylint 2.10.2 (#2226)
This commit is contained in:
@@ -62,10 +62,10 @@ async def to_code(config):
|
||||
if CONF_CSS_INCLUDE in config:
|
||||
cg.add_define("WEBSERVER_CSS_INCLUDE")
|
||||
path = CORE.relative_config_path(config[CONF_CSS_INCLUDE])
|
||||
with open(path, "r") as myfile:
|
||||
with open(file=path, mode="r", encoding="utf-8") as myfile:
|
||||
cg.add(var.set_css_include(myfile.read()))
|
||||
if CONF_JS_INCLUDE in config:
|
||||
cg.add_define("WEBSERVER_JS_INCLUDE")
|
||||
path = CORE.relative_config_path(config[CONF_JS_INCLUDE])
|
||||
with open(path, "r") as myfile:
|
||||
with open(file=path, mode="r", encoding="utf-8") as myfile:
|
||||
cg.add(var.set_js_include(myfile.read()))
|
||||
|
Reference in New Issue
Block a user