'Initialize the cover.'

def __init__(self, hass, name, position=None, tilt_position=None, device_class=None, supported_features=None):

    self.hass = hass
    self._name = name
    self._position = position
    self._device_class = device_class
    self._supported_features = supported_features
    self._set_position = None
    self._set_tilt_position = None
    self._tilt_position = tilt_position
    self._requested_closing = True
    self._requested_closing_tilt = True
    self._unsub_listener_cover = None
    self._unsub_listener_cover_tilt = None
    self._is_opening = False
    self._is_closing = False
    if (position is None):
        self._closed = True
    else:
        self._closed = (self.current_cover_position <= 0)
