diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..767e2d5 --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,21 @@ +[bumpversion] +current_version = 1.0.10b0 +parse = (?P\d+)(\.(?P\d+))(\.(?P\d))(?P[bf]*)(?P\d*) +commit = True +tag = True +serialize = + {major}.{minor}.{patch}{release}{build} + {major}.{minor}.{patch} + +[bumpversion:part:release] +optional_value = f +values = + b + f + +[bumpversion:part:build] +first_value = 0 + +[bumpversion:file:custom_components/mega/manifest.json] +search = "version": "v{current_version}" +replace = "version": "v{new_version}" diff --git a/custom_components/mega/hub.py b/custom_components/mega/hub.py index 8b6bbd2..616c562 100644 --- a/custom_components/mega/hub.py +++ b/custom_components/mega/hub.py @@ -566,6 +566,9 @@ class MegaD: elif cfg.pty == '4' and cfg.m == '2': # scl исключаем из сканирования continue + elif cfg.pty is None and nports < 30: + # вроде как это ADC на 328 меге + ret['sensor'][port].append(dict()) elif cfg.pty in ('3', '2', '4'): http_cmd = 'get' if cfg.d == '5' and cfg.pty == '3': diff --git a/custom_components/mega/manifest.json b/custom_components/mega/manifest.json index e383d9f..3eb3a40 100644 --- a/custom_components/mega/manifest.json +++ b/custom_components/mega/manifest.json @@ -15,5 +15,5 @@ "@andvikt" ], "issue_tracker": "https://github.com/andvikt/mega_hacs/issues", - "version": "v1.0.9" + "version": "v1.0.10b0" } \ No newline at end of file