Skip to content

Commit 55be710

Browse files
committed
Fix minor bug
1 parent c7403b6 commit 55be710

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

custom_components/nmea2000/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async def async_step_options(self, user_input=None):
168168
if CONF_PGN_INCLUDE in user_input and CONF_PGN_EXCLUDE in user_input:
169169
errors[CONF_PGN_EXCLUDE] = "include_exclude_only_one"
170170

171-
if len(user_input[CONF_MANUFACTURER_CODES_INCLUDE]) != 0 and len(user_input[CONF_MANUFACTURER_CODES_EXCLUDE]) != 0:
171+
if (CONF_MANUFACTURER_CODES_INCLUDE in user_input and len(user_input[CONF_MANUFACTURER_CODES_INCLUDE]) != 0) and (CONF_MANUFACTURER_CODES_EXCLUDE in user_input and len(user_input[CONF_MANUFACTURER_CODES_EXCLUDE]) != 0):
172172
errors[CONF_MANUFACTURER_CODES_EXCLUDE] = "include_exclude_only_one"
173173

174174
if len(errors) == 0:
@@ -222,7 +222,7 @@ async def async_step_init(self, user_input=None):
222222
if CONF_PGN_INCLUDE in user_input and CONF_PGN_EXCLUDE in user_input:
223223
errors[CONF_PGN_EXCLUDE] = "include_exclude_only_one"
224224

225-
if len(user_input[CONF_MANUFACTURER_CODES_INCLUDE]) != 0 and len(user_input[CONF_MANUFACTURER_CODES_EXCLUDE]) != 0:
225+
if (CONF_MANUFACTURER_CODES_INCLUDE in user_input and len(user_input[CONF_MANUFACTURER_CODES_INCLUDE]) != 0) and (CONF_MANUFACTURER_CODES_EXCLUDE in user_input and len(user_input[CONF_MANUFACTURER_CODES_EXCLUDE]) != 0):
226226
errors[CONF_MANUFACTURER_CODES_EXCLUDE] = "include_exclude_only_one"
227227

228228
if len(errors) == 0:

custom_components/nmea2000/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"requirements": [
1414
"nmea2000==2025.6.3"
1515
],
16-
"version": "2025.6.2"
16+
"version": "2025.6.3"
1717
}

0 commit comments

Comments
 (0)