Skip to content

Commit 49ae278

Browse files
committed
Fix firmware download
1 parent 6f6d085 commit 49ae278

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

zigpy_zigate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MAJOR_VERSION = 0
22
MINOR_VERSION = 7
3-
PATCH_VERSION = '3'
3+
PATCH_VERSION = '4'
44
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
55
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)

zigpy_zigate/tools/firmware.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ def get_releases():
1515
r = urllib.request.urlopen(URL)
1616
if r.status == 200:
1717
for release in json.loads(r.read()):
18+
if release.get('draft'):
19+
continue
20+
if release.get('prerelease'):
21+
continue
1822
for asset in release['assets']:
23+
if 'pdm' in asset['name'].lower():
24+
continue
1925
if asset['name'].endswith('.bin'):
2026
LOGGER.info('Found %s', asset['name'])
2127
releases[asset['name']] = asset['browser_download_url']

0 commit comments

Comments
 (0)