mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Update frontend build scripts for pep257
This commit is contained in:
parent
159e287959
commit
2a75c6fcf6
@ -1,2 +1,2 @@
|
|||||||
""" DO NOT MODIFY. Auto-generated by update_mdi script """
|
"""DO NOT MODIFY. Auto-generated by update_mdi script."""
|
||||||
VERSION = "e85dc66e1a0730e44f79ed11501cd79a"
|
VERSION = "e85dc66e1a0730e44f79ed11501cd79a"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
"""DO NOT MODIFY. Auto-generated by build_frontend script."""
|
||||||
VERSION = "30bcc0eacc13a2317000824741dc9ac0"
|
VERSION = "30bcc0eacc13a2317000824741dc9ac0"
|
||||||
|
@ -11,7 +11,7 @@ cp build/service_worker.js ..
|
|||||||
|
|
||||||
# Generate the MD5 hash of the new frontend
|
# Generate the MD5 hash of the new frontend
|
||||||
cd ../..
|
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
|
if [ $(command -v md5) ]; then
|
||||||
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> version.py
|
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> version.py
|
||||||
elif [ $(command -v md5sum) ]; then
|
elif [ $(command -v md5sum) ]; then
|
||||||
|
@ -61,7 +61,7 @@ def write_component(version, source):
|
|||||||
with open(VERSION_OUTPUT, 'w') as outp:
|
with open(VERSION_OUTPUT, 'w') as outp:
|
||||||
print('Generating version file', VERSION_OUTPUT)
|
print('Generating version file', VERSION_OUTPUT)
|
||||||
outp.write(
|
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))
|
outp.write('VERSION = "{}"\n'.format(version))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user