File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ def _get_actuator_mode(
523523
524524 Collect the requested gateway mode.
525525 """
526- if not (self . check_name ( ADAM ) and entity_id == self ._gateway_id ):
526+ if not (entity_id == self ._gateway_id and self . check_name ( ADAM ) ):
527527 return None
528528
529529 if (search := search_actuator_functionalities (appliance , key )) is not None :
@@ -538,7 +538,7 @@ def _get_regulation_mode(
538538
539539 Adam: collect the gateway regulation_mode.
540540 """
541- if self ._reg_allowed_modes :
541+ if entity_id == self . _gateway_id and self ._reg_allowed_modes :
542542 if (
543543 mode := self ._get_actuator_mode (
544544 appliance , entity_id , "regulation_mode_control_functionality"
@@ -559,7 +559,7 @@ def _get_gateway_mode(
559559
560560 Adam: collect the gateway mode.
561561 """
562- if self ._gw_allowed_modes :
562+ if entity_id == self . _gateway_id and self ._gw_allowed_modes :
563563 if (
564564 mode := self ._get_actuator_mode (
565565 appliance , entity_id , "gateway_mode_control_functionality"
You can’t perform that action at this time.
0 commit comments