Dynamic inventory with "static" groups?

Hi, I am using AWX 10.0.0 with dynamic inventory (python script). Is it possible that AWX ‘remembers’ the group to which host belongs when host goes offline and comes back online few hours later? To illustrate what I think is happening in my setup:

  1. inventory script is run, host 192.168.1.1 is added to inventory
  2. I manually add the host 192.168.1.1 to the group AUDIO
  3. inventory script is run, host 192.168.1.1 is not online, host 192.168.1.1 is removed from inventory
  4. inventory script is run, host 192.168.1.1 is online, host 192.168.1.1 is added to inventory but it’s not in AUDIO group anymore

I would like to avoid to keep the list of hosts that should belong to AUDIO group in inventory script. Is there a better way to do it?