Fix bump-version for dev versions

This commit is contained in:
Otto Winter 2020-07-26 10:10:00 +02:00
parent b531d68b89
commit 38c410805d
No known key found for this signature in database
GPG Key ID: 48ED2DDB96D7682C

View File

@ -57,7 +57,7 @@ def write_version(version: Version):
sub( sub(
'Makefile', 'Makefile',
r'ESPHOME_REF = .*', r'ESPHOME_REF = .*',
f'ESPHOME_REF = v{version}' f'ESPHOME_REF = v{version}' if not version.dev else f'ESPHOME_REF = dev'
) )
# PROJECT_NUMBER = 1.14.4 # PROJECT_NUMBER = 1.14.4
sub( sub(