File tree Expand file tree Collapse file tree
custom_components/nmea2000 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 1313 "requirements" : [
1414 " nmea2000==2025.6.3"
1515 ],
16- "version" : " 2025.6.2 "
16+ "version" : " 2025.6.3 "
1717}
You can’t perform that action at this time.
0 commit comments