What takes priority if i assign a sensor to a group and an area?

What happens if i assign a binary sensor to a group (say flood group) and then assign it to an area? Does it still show up in the overview dashboard as part of the flood group or will it be part of the Area section in the lovelace overview.