From 2a75c6fcf6b257f7d5a071f9b59d6d93b2f3d597 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 12 Mar 2016 10:52:48 -0800 Subject: [PATCH] Update frontend build scripts for pep257 --- homeassistant/components/frontend/mdi_version.py | 2 +- homeassistant/components/frontend/version.py | 2 +- script/build_frontend | 2 +- script/update_mdi.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/frontend/mdi_version.py b/homeassistant/components/frontend/mdi_version.py index 1b9eb4c249b..3da4b20133d 100644 --- a/homeassistant/components/frontend/mdi_version.py +++ b/homeassistant/components/frontend/mdi_version.py @@ -1,2 +1,2 @@ -""" DO NOT MODIFY. Auto-generated by update_mdi script """ +"""DO NOT MODIFY. Auto-generated by update_mdi script.""" VERSION = "e85dc66e1a0730e44f79ed11501cd79a" diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py index 2f861934811..d1c34c7e7ab 100644 --- a/homeassistant/components/frontend/version.py +++ b/homeassistant/components/frontend/version.py @@ -1,2 +1,2 @@ -""" DO NOT MODIFY. Auto-generated by build_frontend script """ +"""DO NOT MODIFY. Auto-generated by build_frontend script.""" VERSION = "30bcc0eacc13a2317000824741dc9ac0" diff --git a/script/build_frontend b/script/build_frontend index 5920026486e..f7d9a9fe3eb 100755 --- a/script/build_frontend +++ b/script/build_frontend @@ -11,7 +11,7 @@ cp build/service_worker.js .. # Generate the MD5 hash of the new frontend cd ../.. -echo '""" DO NOT MODIFY. Auto-generated by build_frontend script """' > version.py +echo '"""DO NOT MODIFY. Auto-generated by build_frontend script."""' > version.py if [ $(command -v md5) ]; then echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> version.py elif [ $(command -v md5sum) ]; then diff --git a/script/update_mdi.py b/script/update_mdi.py index d354d5b09d9..7169f1b31eb 100755 --- a/script/update_mdi.py +++ b/script/update_mdi.py @@ -61,7 +61,7 @@ def write_component(version, source): with open(VERSION_OUTPUT, 'w') as outp: print('Generating version file', VERSION_OUTPUT) outp.write( - '""" DO NOT MODIFY. Auto-generated by update_mdi script """\n') + '"""DO NOT MODIFY. Auto-generated by update_mdi script."""\n') outp.write('VERSION = "{}"\n'.format(version))