<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def link_to_dashboard(self, dashboard_id=None, panel_id=None, **kwargs):
 r""" Links the sensor to a dashboard. :param dashboard_id: Id of the dashboard to link to. Enter a * if the sensor should be linked to all dashboards. :type dashboard_id: ``str`` :param panel_id: Id of the panel to link to. This is the id of a panel you have added your self to a dashboard or one of the system panels *sys-header*, *header* or *footer* :type panel_id: ``str`` :Keyword Arguments: * **link_to_header** (``str``) -- Link this input to header of the panel. * **label_icon** (``str``) -- Icon that should be displayed together with label. All Font Awesome icons are valid just enter the name of the icon without *fa-* * **label** (``str``) -- Label text, default value is the name of the sensor. * **flat** (``bool``) -- Flat look and feel. * **inline** (``bool``) -- Display value, sparkline and label in its actual size otherwise it occupys the entire with of the panel * **type** (``str``) -- One of the following values *radial_gauge*, *vertical_gauge*, *horizontal_gauge*, *chart* or *value*. * **show_sparkline** (``bool``) -- Show a sparkline next to the value. * **icon** (``bool``) -- Icon to show. All Font Awesome icons are valid just enter the name of the icon without *fa-*. * **show_value** (``bool``) -- Show the numeric value and unit. * **label** (``str``) -- Label to show default is the name of the sensor. """


        if self._dimensions == 1:
            self._sensor_value.link_to_dashboard(dashboard_id, panel_id, **kwargs)
        else:
            for dimension in range(0, self._dimensions):
                self._sub_sensors[dimension].link_to_dashboard(dashboard_id, panel_id, **kwargs)