'Return the state of the sensor.'

@property
def state(self):

    if (self.var_id == 'network_link_status'):
        nic = self._api.data['system_stats']['nics'][self.monitor_device]
        return nic['link_status']
    data = self._api.data['bandwidth'][self.monitor_device]
    if (self.var_id == 'network_tx'):
        return round_nicely(((data['tx'] / 1024) / 1024))
    if (self.var_id == 'network_rx'):
        return round_nicely(((data['rx'] / 1024) / 1024))
