Simplest way is to create a group containing the two motion sensors. In your automation’s State Trigger, replace the two binary_sensors with the group.
- platform: state
entity_id: group.my_two_motion_sensors
to: 'off'
for: 00:02:00
To add to this, when multiple entities are added to a trigger, HA evaluates them as ‘OR’. Therefore, you current automation will be triggered if any of the sensors go off.
Assuming you have defined it in the groups.yaml file, it appears to be correct (Group documentation).
You will need to execute Configuration > Server Controls > Reload Groups in order to load the newly created group into Home Assistant. You may want to execute Check Configuration prior to reloading groups (to ensure there are no syntax errors).