1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

Update frontend build scripts for pep257

This commit is contained in:
Paulus Schoutsen 2016-03-12 10:52:48 -08:00
parent 159e287959
commit 2a75c6fcf6
4 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by update_mdi script """
"""DO NOT MODIFY. Auto-generated by update_mdi script."""
VERSION = "e85dc66e1a0730e44f79ed11501cd79a"

View File

@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by build_frontend script """
"""DO NOT MODIFY. Auto-generated by build_frontend script."""
VERSION = "30bcc0eacc13a2317000824741dc9ac0"

View File

@ -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

View File

@ -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))