'Initialize the cover.'

def __init__(self, name, relay_pin, state_pin, state_pull_mode, relay_time, invert_state, invert_relay):

    self._name = name
    self._state = False
    self._relay_pin = relay_pin
    self._state_pin = state_pin
    self._state_pull_mode = state_pull_mode
    self._relay_time = relay_time
    self._invert_state = invert_state
    self._invert_relay = invert_relay
    rpi_gpio.setup_output(self._relay_pin)
    rpi_gpio.setup_input(self._state_pin, self._state_pull_mode)
    rpi_gpio.write_output(self._relay_pin, (not self._invert_relay))
