Edit Cover RPI GPIO Cover

I want to edit my /components/cover/rpi_gpio.py file, to use a different relay on my hass build.

But where would this file actually exist in my home assistant build?

Basically I want my GPIO for the relay to have no voltage until the event where its toggles the relay.

The current cover only allows its current set up where its set up as 5v on the gpio pin, and toggle to 0v on the toggle event.

rpi_gpio.write_output(self._relay_pin, True) On set up apply 5v to gpio pin

def _trigger(self):
    """Trigger the cover."""
    rpi_gpio.write_output(self._relay_pin, False)
    sleep(self._relay_time)
rpi_gpio.write_output(self._relay_pin, True)

trigger event where pin is toggled to 0v

basically I want to flip the true statements to false and the false statement to true, allowing me to use a more friendly relay which is trigged by voltage as opposed to being trigged by an earth.

What would even be better is a variable which would allow you to allow you to run either.
Excuse my noobness

VARIABLE, True or False
rpi_gpio.write_output(self._relay_pin, VARIABLE)

def _trigger(self):
“”“Trigger the cover.”""
IF VARIABLE = True
rpi_gpio.write_output(self._relay_pin, False
IF VARIABLE = False
rpi_gpio.write_output(self._relay_pin, True
sleep(self._relay_time)
rpi_gpio.write_output(self._relay_pin, VARIABLE)